diff options
-rwxr-xr-x | examples/var_service/supplicant_if/run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/var_service/supplicant_if/run b/examples/var_service/supplicant_if/run index 45211e001..279d18af5 100755 --- a/examples/var_service/supplicant_if/run +++ b/examples/var_service/supplicant_if/run | |||
@@ -8,7 +8,8 @@ pwd="$PWD" | |||
8 | if="${PWD##*/dhcp_}" | 8 | if="${PWD##*/dhcp_}" |
9 | 9 | ||
10 | echo "* Upping iface $if" | 10 | echo "* Upping iface $if" |
11 | ip link set dev "$if" up | 11 | # "or sleep" idiom prevents rapid respawning if iface does not exist |
12 | ip link set dev "$if" up || { sleep 5; exit; } | ||
12 | 13 | ||
13 | ##echo "* Powersave disable on $if" | 14 | ##echo "* Powersave disable on $if" |
14 | ##iw dev "$if" set power_save off | 15 | ##iw dev "$if" set power_save off |