Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions util/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ set -e

# Single argument to command line is interface name
if [ -n "$1" ]; then
# loop until interface is found, or we give up
NEXT_WAIT_TIME=1
until [ -e "/sys/class/net/$1" ] || [ $NEXT_WAIT_TIME -eq 4 ]; do
sleep $(( NEXT_WAIT_TIME++ ))
echo "Waiting for $1 to become available.... ${NEXT_WAIT_TIME}"
done
if [ -e "/sys/class/net/$1" ]; then
IFACE=$1
fi
Expand Down