summaryrefslogtreecommitdiffstats
path: root/ifplugd
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-11-29 02:47:13 +0100
committerJames Rayner <james@archlinux.org>2009-12-03 21:28:31 +0100
commitd2731ee9c21c6ecf86aa2df9b9b694cd758f1197 (patch)
treed4d637c4446714c9e0e3212dfb99b3b5e05bd05b /ifplugd
parent9e316d0a306f8ed2a9b46f76b04806e0a5b1760a (diff)
downloadnetctl-d2731ee9c21c6ecf86aa2df9b9b694cd758f1197.tar.gz
netctl-d2731ee9c21c6ecf86aa2df9b9b694cd758f1197.tar.xz
netcfg.action: permit down) method to exit 0, fix "list profiles" bug
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'ifplugd')
-rwxr-xr-xifplugd/netcfg.action4
1 files changed, 2 insertions, 2 deletions
diff --git a/ifplugd/netcfg.action b/ifplugd/netcfg.action
index bb02151..7bcebd8 100755
--- a/ifplugd/netcfg.action
+++ b/ifplugd/netcfg.action
@@ -21,7 +21,7 @@ case "$2" in
netcfg "$profile" && exit 0
fi
) done
- for profile in $(list profiles}; do (
+ for profile in $(list_profiles}; do (
load_profile "$profile"
[[ "$INTERFACE" != "$1" ]] && continue
[[ "$CONNECTION" != @(ethernet|ethernet-iproute) ]] && continue
@@ -33,7 +33,7 @@ case "$2" in
;;
down)
if check_iface "$1"; then
- netcfg -i "$1"
+ netcfg -i "$1" && exit 0
fi
;;
*)