summaryrefslogtreecommitdiffstats
path: root/src-wireless/net-auto
diff options
context:
space:
mode:
Diffstat (limited to 'src-wireless/net-auto')
-rwxr-xr-xsrc-wireless/net-auto3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-wireless/net-auto b/src-wireless/net-auto
index a4f68b2..8b724a5 100755
--- a/src-wireless/net-auto
+++ b/src-wireless/net-auto
@@ -26,8 +26,9 @@ case "$1" in
done
;;
stop)
+ [[ ! -e /var/run/daemons/net-auto ]] && exit 0
for iface in $(cat /var/run/daemons/net-auto); do
- netcfg interface-down $iface
+ netcfg iface-down $iface
done
rm_daemon net-auto
;;