summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-04-30 12:22:52 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-04-30 12:22:52 +0200
commit9e5e455c09ffacbac2bdc2e5dbccd849e5c08824 (patch)
treee399d4eb4fac1bcc93832916fe8e87346a3610cd /scripts
parent2401ca411949a882c23f01942379e37dd1daa36c (diff)
downloadnetctl-9e5e455c09ffacbac2bdc2e5dbccd849e5c08824.tar.gz
netctl-9e5e455c09ffacbac2bdc2e5dbccd849e5c08824.tar.xz
Output tweaks in netcfg-daemon
Don't try to bring down backgrounded profiles if they are not up, preventing "not connected" messages.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netcfg-daemon8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/netcfg-daemon b/scripts/netcfg-daemon
index 0291908..97ed1ef 100755
--- a/scripts/netcfg-daemon
+++ b/scripts/netcfg-daemon
@@ -39,12 +39,12 @@ case "$1" in
# Stop the profiles in the reverse order they were started.
tac "$STATE_FILE" | (
while read profile; do
- if [[ "$profile" = "${profile#@}" ]]; then
- if [[ -e "$STATE_DIR/profiles/$profile" ]]; then
+ if [[ -e "$STATE_DIR/profiles/${profile#@}" ]]; then
+ if [[ "$profile" = "${profile#@}" ]]; then
/usr/bin/netcfg down "$profile" || exit $?
+ else
+ /usr/bin/netcfg down "${profile#@}" &
fi
- else
- /usr/bin/netcfg down "${profile#@}" >/dev/null &
fi
done
rm "$STATE_FILE"