6 PIDFILE
=/var
/run
/ModemManager.pid
8 [ -x $MODEMMANAGER_BIN ] ||
exit 0
11 printf "Starting ModemManager: "
13 start-stop-daemon
-S -q -b -m -p $PIDFILE \
14 --exec /usr
/sbin
/ModemManager
15 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
18 printf "Stopping ModemManager: "
19 start-stop-daemon
-K -q -p $PIDFILE
20 [ $?
= 0 ] && { echo "OK"; rm -f $PIDFILE; } ||
echo "FAIL"
38 echo "Usage: $0 {start|stop|restart}"