summaryrefslogtreecommitdiff
path: root/openwrt/package/rp-pppoe/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-11 21:17:45 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-11 21:17:45 +0000
commit53571b35bf70fe66bccbd5212a7f1009b153a57f (patch)
tree781f7fa2474932a4295b118aeea11a97c4573d9c /openwrt/package/rp-pppoe/files
parent2e636bda64e3e8118acfbc32308138044cf393b8 (diff)
Add rp-pppoe package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1413 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/rp-pppoe/files')
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-client.init12
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-relay.default1
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-relay.init15
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-server.default1
-rw-r--r--openwrt/package/rp-pppoe/files/pppoe-server.init15
5 files changed, 44 insertions, 0 deletions
diff --git a/openwrt/package/rp-pppoe/files/pppoe-client.init b/openwrt/package/rp-pppoe/files/pppoe-client.init
new file mode 100644
index 0000000000..fb3f4ca3e8
--- /dev/null
+++ b/openwrt/package/rp-pppoe/files/pppoe-client.init
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case "$1" in
+ start|stop)
+ adsl-$1
+ ;;
+ *)
+ echo "usage: $0 {start|stop}"
+ exit 1
+esac
+
+exit $?
diff --git a/openwrt/package/rp-pppoe/files/pppoe-relay.default b/openwrt/package/rp-pppoe/files/pppoe-relay.default
new file mode 100644
index 0000000000..47a3892c4c
--- /dev/null
+++ b/openwrt/package/rp-pppoe/files/pppoe-relay.default
@@ -0,0 +1 @@
+OPTIONS="-C eth2 -S vlan1"
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 $?
diff --git a/openwrt/package/rp-pppoe/files/pppoe-server.default b/openwrt/package/rp-pppoe/files/pppoe-server.default
new file mode 100644
index 0000000000..72a8c01990
--- /dev/null
+++ b/openwrt/package/rp-pppoe/files/pppoe-server.default
@@ -0,0 +1 @@
+OPTIONS="-C MyRouter -I eth2"
diff --git a/openwrt/package/rp-pppoe/files/pppoe-server.init b/openwrt/package/rp-pppoe/files/pppoe-server.init
new file mode 100644
index 0000000000..2768895de0
--- /dev/null
+++ b/openwrt/package/rp-pppoe/files/pppoe-server.init
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+DEFAULT=/etc/default/pppoe-server
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ pppoe-server $OPTIONS
+ ;;
+ *)
+ echo "usage: $0 (start)"
+ exit 1
+esac
+
+exit $?