2014-04-28 17:34:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Starting ofono ... "
|
2014-04-28 17:34:52 +02:00
|
|
|
start-stop-daemon -S -q -m -b -p /var/run/ofonod.pid --exec /usr/sbin/ofonod -- -n
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
stop)
|
2015-10-03 23:29:57 +02:00
|
|
|
printf "Stopping ofono ..."
|
2014-04-28 17:34:52 +02:00
|
|
|
start-stop-daemon -K -q -p /var/run/ofonod.pid
|
|
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "usage: $0 {start|stop|restart}"
|
|
|
|
;;
|
|
|
|
esac
|