Skip to content
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
1 change: 1 addition & 0 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ print_banner () {
function get_interface {
# 1, Get interface name from host
INTERFACE=$(${CONTAINER_COMMAND} "iw dev" | grep 'Interface' | awk 'NR==1{print $2}')
INTERFACE=${INTERFACE//[$'\t\r\n ']}
while [ -z ${INTERFACE} ]; do
echo "Waiting for WIFI interface..."
((COUNT++)) && ((COUNT==20)) && echo -e "${YELLOW}[WARNING]${NC} No interface found after 120s, stopping gracefully" && exit 0
Expand Down
Loading