summaryrefslogtreecommitdiffstats
path: root/ifplugd/netcfg.action
diff options
context:
space:
mode:
Diffstat (limited to 'ifplugd/netcfg.action')
-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
;;