Skip to content

Commit

Permalink
make eth0 capitalization across Eth0 IP Config, LLDP, CDP infos. i.e.…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschmelzle committed Sep 14, 2020
1 parent 7dc327b commit 90855eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BakeBit/Software/Python/scripts/networkinfo/cdpcleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion BakeBit/Software/Python/scripts/networkinfo/lldpcleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 90855eb

Please sign in to comment.