service examples: do not respawn supplicant too often

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-02-02 19:06:19 +01:00
parent d4b568c108
commit e17e8d4b7d

View File

@ -8,7 +8,8 @@ pwd="$PWD"
if="${PWD##*/dhcp_}"
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"
##iw dev "$if" set power_save off