← Commit list

e17e8d4b7

Denys Vlasenko
Denys Vlasenko
2019-02-02
SUCCESS Duration: 150s

Subject

service examples: do not respawn supplicant too often

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

examples/var_service/supplicant_if/run+2 -1
@@ -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