From b7856cc45d5bd5485c805f028722a1961c83a23a Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sun, 4 May 2014 00:11:56 +0000 Subject: rename init scripts so their basename matches their enabler variable --- package/rp-pppoe/files/pppoe-client.init | 28 ---------------------------- package/rp-pppoe/files/pppoe-relay.init | 28 ---------------------------- package/rp-pppoe/files/pppoe-server.init | 28 ---------------------------- package/rp-pppoe/files/pppoe_client.init | 28 ++++++++++++++++++++++++++++ package/rp-pppoe/files/pppoe_relay.init | 28 ++++++++++++++++++++++++++++ package/rp-pppoe/files/pppoe_server.init | 28 ++++++++++++++++++++++++++++ 6 files changed, 84 insertions(+), 84 deletions(-) delete mode 100644 package/rp-pppoe/files/pppoe-client.init delete mode 100644 package/rp-pppoe/files/pppoe-relay.init delete mode 100644 package/rp-pppoe/files/pppoe-server.init create mode 100644 package/rp-pppoe/files/pppoe_client.init create mode 100644 package/rp-pppoe/files/pppoe_relay.init create mode 100644 package/rp-pppoe/files/pppoe_server.init (limited to 'package/rp-pppoe/files') diff --git a/package/rp-pppoe/files/pppoe-client.init b/package/rp-pppoe/files/pppoe-client.init deleted file mode 100644 index 9dd9c597e..000000000 --- a/package/rp-pppoe/files/pppoe-client.init +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -#PKG pppoe-server -#INIT 50 -. /etc/rc.conf - -case $1 in -autostop) ;; -autostart) - test x"${pppoe_client:-NO}" = x"NO" && exit 0 - test x"$pppoe_client" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start - exec sh $0 start - ;; -start) - adsl-start - ;; -stop) - adsl-stop - ;; -restart) - sh $0 stop - sh $0 start - ;; -*) - echo "Usage: $0 {start | stop | restart}" - exit 1 - ;; -esac -exit $? diff --git a/package/rp-pppoe/files/pppoe-relay.init b/package/rp-pppoe/files/pppoe-relay.init deleted file mode 100644 index f298f02f5..000000000 --- a/package/rp-pppoe/files/pppoe-relay.init +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -#PKG pppoe-relay -#INIT 50 -. /etc/rc.conf - -case $1 in -autostop) ;; -autostart) - test x"${pppoe_relay:-NO}" = x"NO" && exit 0 - test x"$pppoe_relay" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start - exec sh $0 start - ;; -start) - /usr/sbin/pppoe-relay $pppoe_relay_flags - ;; -stop) - kill $(pgrep -f /usr/sbin/pppoe-relay) - ;; -restart) - sh $0 stop - sh $0 start - ;; -*) - echo "Usage: $0 {start | stop | restart}" - exit 1 - ;; -esac -exit $? diff --git a/package/rp-pppoe/files/pppoe-server.init b/package/rp-pppoe/files/pppoe-server.init deleted file mode 100644 index 331048593..000000000 --- a/package/rp-pppoe/files/pppoe-server.init +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -#PKG pppoe-server -#INIT 50 -. /etc/rc.conf - -case $1 in -autostop) ;; -autostart) - test x"${pppoe_server:-NO}" = x"NO" && exit 0 - test x"$pppoe_server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start - exec sh $0 start - ;; -start) - /usr/sbin/pppoe-server - ;; -stop) - kill $(pgrep -f /usr/sbin/pppoe-server) - ;; -restart) - sh $0 stop - sh $0 start - ;; -*) - echo "Usage: $0 {start | stop | restart}" - exit 1 - ;; -esac -exit $? diff --git a/package/rp-pppoe/files/pppoe_client.init b/package/rp-pppoe/files/pppoe_client.init new file mode 100644 index 000000000..9dd9c597e --- /dev/null +++ b/package/rp-pppoe/files/pppoe_client.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG pppoe-server +#INIT 50 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${pppoe_client:-NO}" = x"NO" && exit 0 + test x"$pppoe_client" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + adsl-start + ;; +stop) + adsl-stop + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/rp-pppoe/files/pppoe_relay.init b/package/rp-pppoe/files/pppoe_relay.init new file mode 100644 index 000000000..f298f02f5 --- /dev/null +++ b/package/rp-pppoe/files/pppoe_relay.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG pppoe-relay +#INIT 50 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${pppoe_relay:-NO}" = x"NO" && exit 0 + test x"$pppoe_relay" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + /usr/sbin/pppoe-relay $pppoe_relay_flags + ;; +stop) + kill $(pgrep -f /usr/sbin/pppoe-relay) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/rp-pppoe/files/pppoe_server.init b/package/rp-pppoe/files/pppoe_server.init new file mode 100644 index 000000000..331048593 --- /dev/null +++ b/package/rp-pppoe/files/pppoe_server.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG pppoe-server +#INIT 50 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${pppoe_server:-NO}" = x"NO" && exit 0 + test x"$pppoe_server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + /usr/sbin/pppoe-server + ;; +stop) + kill $(pgrep -f /usr/sbin/pppoe-server) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? -- cgit v1.2.3