aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/ifplugd/ifplugd.action
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs/etc/ifplugd/ifplugd.action')
-rwxr-xr-xrootfs/etc/ifplugd/ifplugd.action3
1 files changed, 2 insertions, 1 deletions
diff --git a/rootfs/etc/ifplugd/ifplugd.action b/rootfs/etc/ifplugd/ifplugd.action
index e5b35ec..e0e59ef 100755
--- a/rootfs/etc/ifplugd/ifplugd.action
+++ b/rootfs/etc/ifplugd/ifplugd.action
@@ -5,5 +5,6 @@ NEW_STATE="$2"
test -n "$INTERFACE"
test -n "$NEW_STATE"
-exec ip link set "$INTERFACE" "$NEW_STATE"
+[ "$NEW_STATE" = "up" ] && exec ifup "$INTERFACE"
+[ "$NEW_STATE" = "down" ] && exec ifdown "$INTERFACE"