Skip to content

Commit

Permalink
Adds slightly longer sleep before checking net dev carrier file (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkinkade authored Oct 16, 2024
1 parent 83ae1b6 commit 66d46c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ for i in /sys/class/net/eth*; do
# bring each device up before trying to read the carrier file. Sleep briefly
# to give the kernel time to populate the directory.
ip link set up dev $NAME
sleep 1
sleep 2
CARRIER=$(cat $i/carrier)
if [[ $CARRIER == "1" ]]; then
DEVICE=$NAME
Expand Down

0 comments on commit 66d46c8

Please sign in to comment.