Merge pull request #5 from pdp7/master
Add delay to allow wifi device to become ready
This commit is contained in:
commit
5e3cb3ca69
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
|||
# Bring all wifi interfaces down.
|
||||
# Identify wifi interfaces as rows from standard output of iwconfig (NOT standard
|
||||
# error, those are non-wifi interfaces) which start without whitespace.
|
||||
sleep 30
|
||||
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifdown $x; done
|
||||
# Bring all wifi interfaces up.
|
||||
sleep 30
|
||||
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifup $x; done
|
||||
|
|
|
|||
Loading…
Reference in a new issue