diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-07 16:15:21 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-07 16:15:21 +0100 |
commit | b9dfdaaa1ae0148dd8a3e78508c636636e7396a6 (patch) | |
tree | 49dcef99dbd866108d637cc675853ee49ed8f4d1 /rootfs/etc/ifplugd | |
parent | 612a0afa63144aae338a51c9206a589d4b8fdd65 (diff) |
web server done
Diffstat (limited to 'rootfs/etc/ifplugd')
-rwxr-xr-x | rootfs/etc/ifplugd/ifplugd.action | 3 |
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" |