File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
BakeBit/Software/Python/scripts/networkinfo Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ OUTPUTFILE="/tmp/cdpneigh.txt"
99logger " networkinfo script: cleaning CDP neighbour cache files"
1010echo " No neighbour, takes up to 60 seconds" > " $OUTPUTFILE "
1111# Tell me if eth0 is down
12- sudo /sbin/ethtool eth0 | grep -q " Link detected: no" && echo " Eth0 is down" > " $OUTPUTFILE "
12+ sudo /sbin/ethtool eth0 | grep -q " Link detected: no" && echo " eth0 is down" > " $OUTPUTFILE "
1313
1414# Remove capture file
1515sudo rm -f " $CAPTUREFILE "
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ OUTPUTFILE="/tmp/lldpneigh.txt"
99logger " networkinfo script: cleaning LLDP neighbour cache files"
1010echo " No neighbour, takes up to 60 seconds" > " $OUTPUTFILE "
1111# Tell me if eth0 is down
12- sudo /sbin/ethtool eth0 | grep -q " Link detected: no" && echo " Eth0 is down" > " $OUTPUTFILE "
12+ sudo /sbin/ethtool eth0 | grep -q " Link detected: no" && echo " eth0 is down" > " $OUTPUTFILE "
1313
1414# Remove capture file
1515sudo rm -f " $CAPTUREFILE "
You can’t perform that action at this time.
0 commit comments