diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-07 10:57:17 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-07 10:57:17 +0100 |
commit | 70623600744cab314baf1ccc912134456ffe565d (patch) | |
tree | 7e2a64843e91890735f343e51e3687741df61417 /rootfs/etc/ifplugd | |
parent | 86b1f0ef352205029457cc75e525f86aa70239e5 (diff) |
add ifplugd config
Diffstat (limited to 'rootfs/etc/ifplugd')
-rwxr-xr-x | rootfs/etc/ifplugd/ifplugd.action | 9 | ||||
-rw-r--r-- | rootfs/etc/ifplugd/ifplugd.conf | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/rootfs/etc/ifplugd/ifplugd.action b/rootfs/etc/ifplugd/ifplugd.action new file mode 100755 index 0000000..05db65d --- /dev/null +++ b/rootfs/etc/ifplugd/ifplugd.action @@ -0,0 +1,9 @@ +#!/bin/sh -e +INTERFACE="$1" +NEW_STATE="$2" + +test -n "$INTERFACE" +test -n "$NEW_STATE" + +[ "$NEW_STATE" = "up" ] && exec ifup "$INTERFACE" +[ "$NEW_STATE" = "down" ] && exec ifdown "$INTERFACE" diff --git a/rootfs/etc/ifplugd/ifplugd.conf b/rootfs/etc/ifplugd/ifplugd.conf new file mode 100644 index 0000000..416a0e4 --- /dev/null +++ b/rootfs/etc/ifplugd/ifplugd.conf @@ -0,0 +1,6 @@ +#!/bin/sh +# ifplugd configuration file +INTERFACES="eth0" +# ifplugd options (see ifplugd -h) +ARGS="-u0 -d3" + |