summaryrefslogtreecommitdiff
path: root/extra/ifplugd/ifplugd-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ifplugd/ifplugd-daemon')
-rwxr-xr-xextra/ifplugd/ifplugd-daemon7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/ifplugd/ifplugd-daemon b/extra/ifplugd/ifplugd-daemon
new file mode 100755
index 000000000..e21f4afbd
--- /dev/null
+++ b/extra/ifplugd/ifplugd-daemon
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+. /etc/ifplugd/ifplugd.conf
+
+args=ARGS_$1
+[[ -z ${!args} ]] && args=$ARGS || args=${!args}
+/usr/bin/ifplugd -i "$1" $args