if="${PWD##*/dhcp_}"
echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
echo "* Starting udhcpc on $if [$$]"
exec \
if="${PWD##*/dhcpd_}"
echo "* Upping iface $if"
-ip link set dev $if up || { sleep 5; exit; }
+ip link set dev $if up || exec sleep 5
>>udhcpd.leases
sed 's/^interface.*$/interface '"$if/" -i udhcpd.conf
if="${PWD##*/ifplugd_}"
echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
echo "* Starting ifplugd on $if [$$]"
exec \
echo "* Upping iface $if"
# "or sleep" idiom prevents rapid respawning if iface does not exist
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
##echo "* Powersave disable on $if"
##iw dev "$if" set power_save off
if="${PWD##*/zcip_}"
echo "* Upping iface $if"
-ip link set dev "$if" up || { sleep 5; exit; }
+ip link set dev "$if" up || exec sleep 5
echo "* Starting zcip on $if [$$]"
exec \