summaryrefslogtreecommitdiffstats
path: root/ifplugd
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-11-29 02:47:11 +0100
committerJames Rayner <james@archlinux.org>2009-12-03 21:28:31 +0100
commit7904a6b48590cbb1d0e37d7a8852da5ebacfaf99 (patch)
tree2c1b47e8201e63f740cfe0c3d44dbdad8b2b79c1 /ifplugd
parent574554317eaa288f43288bf148caacca5905aa29 (diff)
downloadnetctl-7904a6b48590cbb1d0e37d7a8852da5ebacfaf99.tar.gz
netctl-7904a6b48590cbb1d0e37d7a8852da5ebacfaf99.tar.xz
netcfg.action: missing extglob marker, don't try dhcp profiles twice
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'ifplugd')
-rwxr-xr-xifplugd/netcfg.action6
1 files changed, 4 insertions, 2 deletions
diff --git a/ifplugd/netcfg.action b/ifplugd/netcfg.action
index d176b81..34796df 100755
--- a/ifplugd/netcfg.action
+++ b/ifplugd/netcfg.action
@@ -24,8 +24,10 @@ case "$2" in
for profile in $(list profiles}; do (
load_profile $profile
[[ $INTERFACE != $1 ]] && continue
- [[ $CONNECTION != "(ethernet|ethernet-iproute)" ]] && continue
- netcfg $profile && exit 0
+ [[ $CONNECTION != @(ethernet|ethernet-iproute) ]] && continue
+ if [[ $IP == "static" ]]; then
+ netcfg $profile && exit 0
+ fi
) done
exit 1
;;