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"