Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=2a4ec30174fee61435788a9d7c81b28126a6b078
commit 2a4ec30174fee61435788a9d7c81b28126a6b078 Author: bouleetbil <bouleet...@frogdev.info> Date: Tue Sep 7 16:54:09 2010 +0000 rp-pppoe-3.10-6-i686 *rewrite rc.adsl diff --git a/source/base/rp-pppoe/FrugalBuild b/source/base/rp-pppoe/FrugalBuild index c144615..62a8555 100644 --- a/source/base/rp-pppoe/FrugalBuild +++ b/source/base/rp-pppoe/FrugalBuild @@ -3,7 +3,7 @@ pkgname=rp-pppoe pkgver=3.10 -pkgrel=5 +pkgrel=6 pkgdesc="Roaring Penguin PPPoE client" url="http://www.roaringpenguin.com/products/pppoe" groups=('base') @@ -14,7 +14,7 @@ up2date="lynx -dump $url |grep tar.gz|sed -n -e 's/.*rp-pppoe-\(.*\)\.tar\.gz .* source=(http://www.roaringpenguin.com/files/download/$pkgname-$pkgver.tar.gz \ rc.adsl resolv.conf-perms.patch) sha1sums=('183372b84c1bb8e22d1bd8be05a280d948ae41f9' \ - 'f79284e0beab4d3362c468faead10a43dd71607e' \ + '557f452427f48b640c7bf16c50befb9ff3473a95' \ 'b035b80e0e78d6d3e6d22e1541ffdc59ad1a46c1') build() diff --git a/source/base/rp-pppoe/rc.adsl b/source/base/rp-pppoe/rc.adsl index 0df6b1d..7a4030e 100644 --- a/source/base/rp-pppoe/rc.adsl +++ b/source/base/rp-pppoe/rc.adsl @@ -4,22 +4,49 @@ # rc.adsl for FrugalWare # distributed under GPL License -. /etc/rc.d/rc.functions - # chkconfig: 2345 15 85 # description: Init script to bring up a PPPoE link -if [ "$1" = "stop" ]; then - stop "$stopadsl" - pppoe-stop &>/dev/null - ok $? -elif [ "$1" = "restart" ]; then - "$0" stop - sleep 1 - "$0" start -else # start - start "$startadsl" +source /lib/initscripts/functions +TEXTDOMAIN=adsl +TEXTDOMAINDIR=/lib/initscripts/messages +daemon="adsl" + +actions=(restart start status stop) +#fixes default value +PIDFILE="/var/run/pppoe-pppoe.pid" +[ -e /etc/ppp/pppoe.conf ] && . /etc/ppp/pppoe.conf + +rc_start() +{ + start_msg pppoe-start &>/dev/null retval=$? ok $retval -fi +} + +rc_stop() +{ + stop_msg + pppoe-stop &>/dev/null + ok $? +} + +rc_restart() +{ + rc_stop + sleep 1 + rc_start +} + +rc_status() +{ + msg "$daemon are" + if [ -f $PIDFILE ] ;then + ok 997 + else + ok 998 + fi +} + +rc_exec $1 _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git