From: Johannes Truschnigg Date: Sun, 31 Dec 2023 13:11:12 +0000 (+0100) Subject: Strip comments X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;p=netconsole-rx Strip comments --- diff --git a/netconsole_autosetup b/netconsole_autosetup index 0f9331f..d1e37ac 100755 --- a/netconsole_autosetup +++ b/netconsole_autosetup @@ -38,8 +38,6 @@ read tgt kind _ < "${tfile}" if [ "${tgt}" = local ] then - # OpenWrt: local 127.0.0.1 dev lo src 127.0.0.1 - # iproute2: local 127.0.0.1 dev lo src 127.0.0.1 uid 1000 printf 'FATAL: Target address is local to this host.\n' >&2 _cleanup 1 elif [ "${tgt}" != "${nchost}" ] @@ -51,16 +49,12 @@ fi if [ "${kind}" = dev ] then : IPv4 local - # OpenWrt: 172.18.3.199 dev br-lan src 172.18.3.254 - # iproute2: 172.18.3.199 dev enp3s0 src 172.18.3.138 uid 1000 read tgt kind dev l_src srcaddr _ < "${tfile}" eval "$(_gethwaddr "${tgt}")" mode='IPv4 local' elif [ "${kind}" = via ] then : IPv4 routed - # OpenWrt: 8.8.8.8 via 100.126.0.243 dev pppoe-wan src 193.238.236.243 - # iproute2: 8.8.8.8 via 172.18.3.254 dev enp3s0 src 172.18.3.138 uid 1000 read tgt kind gw l_dev dev l_src srcaddr _ < "${tfile}" eval "$(_gethwaddr "${gw}")" mode='IPv4 routed' @@ -71,8 +65,6 @@ then if [ "${label_diff}" = dev ] then : IPv6 local - # OpenWrt: 2a02:1748:fafe:cf3f::111 from :: dev br-lan src 2a02:1748:fafe:cf3f::1 metric 1024 - # iproute2: 2a02:1748:fafe:cf3f::111 from :: dev enp3s0 proto ra src 2a02:1748:fafe:cf3f::127 metric 100 pref medium read tgt kind colons l_dev dev l_proto proto l_src srcaddr _ < "${tfile}" if [ "${l_proto}" != proto ] then @@ -84,8 +76,6 @@ then elif [ "${label_diff}" = via ] then : IPv6 routed - # OpenWrt: 2a03:4000:21:3::1:1337 from :: dev pppoe-wan src 2a02:1748:fafe:cf30::1 metric 1024 - # iproute2: 2a03:4000:21:3::1:1337 from :: via fe80::2e0:5cff:fe68:14ff dev enp3s0 proto ra src 2a02:1748:fafe:cf3f::127 metric 100 pref medium read tgt kind colons l_via gw l_dev dev l_proto proto l_src srcaddr _ < "${tfile}" if [ "${l_proto}" != proto ] then