service examples: do not respawn supplicant too often
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d4b568c108
commit
e17e8d4b7d
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ pwd="$PWD"
|
||||||
if="${PWD##*/dhcp_}"
|
if="${PWD##*/dhcp_}"
|
||||||
|
|
||||||
echo "* Upping iface $if"
|
echo "* Upping iface $if"
|
||||||
ip link set dev "$if" up
|
# "or sleep" idiom prevents rapid respawning if iface does not exist
|
||||||
|
ip link set dev "$if" up || { sleep 5; exit; }
|
||||||
|
|
||||||
##echo "* Powersave disable on $if"
|
##echo "* Powersave disable on $if"
|
||||||
##iw dev "$if" set power_save off
|
##iw dev "$if" set power_save off
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue