aboutsummaryrefslogtreecommitdiff
path: root/rootfs/etc/ifplugd
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
commit612a0afa63144aae338a51c9206a589d4b8fdd65 (patch)
tree679e6676d9ce4b56996874bd5782764da221280a /rootfs/etc/ifplugd
parent70623600744cab314baf1ccc912134456ffe565d (diff)
WIP web server
Diffstat (limited to 'rootfs/etc/ifplugd')
-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"
+