summaryrefslogtreecommitdiff
path: root/openwrt/package/rarpd/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/rarpd/files')
-rw-r--r--openwrt/package/rarpd/files/rarpd.default4
-rw-r--r--openwrt/package/rarpd/files/rarpd.init7
2 files changed, 11 insertions, 0 deletions
diff --git a/openwrt/package/rarpd/files/rarpd.default b/openwrt/package/rarpd/files/rarpd.default
new file mode 100644
index 0000000000..1dd41e9b37
--- /dev/null
+++ b/openwrt/package/rarpd/files/rarpd.default
@@ -0,0 +1,4 @@
+# /etc/default/rarpd
+#
+# Only listen on vlan0
+#OPTIONS="-i vlan0"
diff --git a/openwrt/package/rarpd/files/rarpd.init b/openwrt/package/rarpd/files/rarpd.init
new file mode 100644
index 0000000000..04ca0b4f38
--- /dev/null
+++ b/openwrt/package/rarpd/files/rarpd.init
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+RARPD=/usr/sbin/rarpd
+DEFAULT=/etc/default/rarpd
+[ -f $DEFAULT ] && . $DEFAULT
+
+$RARPD $OPTIONS