diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-11-29 02:47:11 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-12-03 21:28:31 +0100 |
commit | 7904a6b48590cbb1d0e37d7a8852da5ebacfaf99 (patch) | |
tree | 2c1b47e8201e63f740cfe0c3d44dbdad8b2b79c1 | |
parent | 574554317eaa288f43288bf148caacca5905aa29 (diff) | |
download | netctl-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>
-rwxr-xr-x | ifplugd/netcfg.action | 6 |
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 ;; |