summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/netcfg-daemon2
-rw-r--r--src/network3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/netcfg-daemon b/scripts/netcfg-daemon
index 27bdc18..0291908 100755
--- a/scripts/netcfg-daemon
+++ b/scripts/netcfg-daemon
@@ -44,7 +44,7 @@ case "$1" in
/usr/bin/netcfg down "$profile" || exit $?
fi
else
- /usr/bin/netcfg down "${profile#@}" &
+ /usr/bin/netcfg down "${profile#@}" >/dev/null &
fi
done
rm "$STATE_FILE"
diff --git a/src/network b/src/network
index ce5e962..ebf9ee6 100644
--- a/src/network
+++ b/src/network
@@ -37,7 +37,8 @@ load_profile()
## Take all registered profiles down.
all_down()
{
- for prof in $(find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n'); do
+ find "$STATE_DIR/profiles/" -maxdepth 1 -type f -printf '%f\n' \
+ | while read prof; do
profile_down "$prof"
done
}