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.action4
1 files changed, 2 insertions, 2 deletions
diff --git a/rootfs/etc/ifplugd/ifplugd.action b/rootfs/etc/ifplugd/ifplugd.action
index 05db65d..e5b35ec 100755
--- a/rootfs/etc/ifplugd/ifplugd.action
+++ b/rootfs/etc/ifplugd/ifplugd.action
@@ -5,5 +5,5 @@ NEW_STATE="$2"
test -n "$INTERFACE"
test -n "$NEW_STATE"
-[ "$NEW_STATE" = "up" ] && exec ifup "$INTERFACE"
-[ "$NEW_STATE" = "down" ] && exec ifdown "$INTERFACE"
+exec ip link set "$INTERFACE" "$NEW_STATE"
+