summaryrefslogtreecommitdiff
path: root/openwrt/package/rp-pppoe/files/pppoe-relay.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/rp-pppoe/files/pppoe-relay.init')
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-relay.init15
1 files changed, 15 insertions, 0 deletions
diff --git a/openwrt/package/rp-pppoe/files/pppoe-relay.init b/openwrt/package/rp-pppoe/files/pppoe-relay.init
new file mode 100644
index 0000000000..d8212f2588
--- /dev/null
+++ b/openwrt/package/rp-pppoe/files/pppoe-relay.init
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+DEFAULT=/etc/default/pppoe-relay
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ pppoe-relay $OPTIONS
+ ;;
+ *)
+ echo "usage: $0 (start)"
+ exit 1
+esac
+
+exit $?