wok-current diff get-softmodem-driver/stuff/martian.init @ rev 7920
Removed PolicyKit, PolicyKit0, and eggdbus. Adding polkit in next commit.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 09 20:55:23 2011 +0000 (2011-01-09) |
parents | 778f75d8af14 |
children | e26a09e68fcb |
line diff
1.1 --- a/get-softmodem-driver/stuff/martian.init Wed Jun 17 10:05:35 2009 +0200 1.2 +++ b/get-softmodem-driver/stuff/martian.init Sun Jan 09 20:55:23 2011 +0000 1.3 @@ -11,7 +11,7 @@ 1.4 NAME="Martian modem" 1.5 DESC="Agere Systems PCI Modem deamon" 1.6 DAEMON=/usr/sbin/martian_modem 1.7 -OPTIONS="--daemon $MARTIAN_OPTIONS /dev/ttySM0" 1.8 +OPTIONS="--daemon $MARTIAN_OPTIONS" 1.9 PIDFILE=/var/run/martian.pid 1.10 MODULE="martian_dev" 1.11 1.12 @@ -36,7 +36,8 @@ 1.13 exit 1 1.14 fi 1.15 echo -n "Stopping $DESC: $NAME... " 1.16 - kill `cat $PIDFILE` 1.17 + killall martian_modem 1.18 + rm $PIDFILE 1.19 status 1.20 ;; 1.21 restart) 1.22 @@ -45,7 +46,7 @@ 1.23 exit 1 1.24 fi 1.25 echo -n "Restarting $DESC: $NAME... " 1.26 - kill `cat $PIDFILE` 1.27 + killall martian_modem 1.28 sleep 2 1.29 $DAEMON $OPTIONS && echo `/bin/pidof $DAEMON` > $PIDFILE 1.30 status