From 90855ebbcdb46cac54386e5ea81b5dbe652c4b61 Mon Sep 17 00:00:00 2001 From: Josh Schmelzle <13954434+joshschmelzle@users.noreply.github.com> Date: Sun, 13 Sep 2020 21:06:26 -0400 Subject: [PATCH] make eth0 capitalization across Eth0 IP Config, LLDP, CDP infos. i.e. fix this: http://i.imgur.com/TPXWgup.png --- BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh | 2 +- BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh b/BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh index 0ad7236..e981115 100755 --- a/BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh +++ b/BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh @@ -9,7 +9,7 @@ OUTPUTFILE="/tmp/cdpneigh.txt" logger "networkinfo script: cleaning CDP neighbour cache files" echo "No neighbour, takes up to 60 seconds" > "$OUTPUTFILE" #Tell me if eth0 is down -sudo /sbin/ethtool eth0 | grep -q "Link detected: no" && echo "Eth0 is down" > "$OUTPUTFILE" +sudo /sbin/ethtool eth0 | grep -q "Link detected: no" && echo "eth0 is down" > "$OUTPUTFILE" #Remove capture file sudo rm -f "$CAPTUREFILE" diff --git a/BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh b/BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh index c2a20c9..15515b7 100755 --- a/BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh +++ b/BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh @@ -9,7 +9,7 @@ OUTPUTFILE="/tmp/lldpneigh.txt" logger "networkinfo script: cleaning LLDP neighbour cache files" echo "No neighbour, takes up to 60 seconds" > "$OUTPUTFILE" #Tell me if eth0 is down -sudo /sbin/ethtool eth0 | grep -q "Link detected: no" && echo "Eth0 is down" > "$OUTPUTFILE" +sudo /sbin/ethtool eth0 | grep -q "Link detected: no" && echo "eth0 is down" > "$OUTPUTFILE" #Remove capture file sudo rm -f "$CAPTUREFILE"