wok diff get-softmodem-driver/stuff/slmodem.init @ rev 9057
centerim: use $DESTDIR
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 11:48:11 2011 +0100 (2011-03-04) |
parents | e5ab27ad8b9e |
children | e26a09e68fcb |
line diff
1.1 --- a/get-softmodem-driver/stuff/slmodem.init Wed Jun 17 09:49:44 2009 +0200 1.2 +++ b/get-softmodem-driver/stuff/slmodem.init Fri Mar 04 11:48:11 2011 +0100 1.3 @@ -8,17 +8,11 @@ 1.4 . /etc/init.d/rc.functions 1.5 . /etc/daemons.conf 1.6 1.7 -NAME=Smartlink modem 1.8 +NAME="Smartlink modem" 1.9 DESC="Smart Link Modem deamon" 1.10 DAEMON=/usr/sbin/slmodemd 1.11 OPTIONS=$SLMODEM_OPTIONS 1.12 PIDFILE=/var/run/slmodemd.pid 1.13 -MODULE="slamr" 1.14 - 1.15 -if [ `/sbin/lsmod | grep -c ${MODULE}` -lt "1" ]; then 1.16 - echo "kernel module is not loaded!" 1.17 - exit 1 1.18 -fi 1.19 1.20 case "$1" in 1.21 start) 1.22 @@ -27,9 +21,8 @@ 1.23 exit 1 1.24 fi 1.25 echo -n "Starting $DESC: $NAME... " 1.26 - $DAEMON $OPTIONS 1.27 + $DAEMON $OPTIONS && echo `/bin/pidof $DAEMON` > $PIDFILE 1.28 status 1.29 - echo `/sbin/pidof $DAEMON` > $PIDFILE 1.30 ;; 1.31 stop) 1.32 if [ ! -f $PIDFILE ] ; then 1.33 @@ -48,9 +41,8 @@ 1.34 echo -n "Restarting $DESC: $NAME... " 1.35 kill `cat $PIDFILE` 1.36 sleep 2 1.37 - $DAEMON $OPTIONS 1.38 + $DAEMON $OPTIONS && echo `/bin/pidof $DAEMON` > $PIDFILE 1.39 status 1.40 - echo `/sbin/pidof $DAEMON` > $PIDFILE 1.41 ;; 1.42 *) 1.43 echo ""