python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / modem-manager / S44modem-manager
blobcf6d89601dd87eacc19c628ea78fc00fc082530c
1 #!/bin/sh
3 # Starts ModemManager
6 PIDFILE=/var/run/ModemManager.pid
8 [ -x $MODEMMANAGER_BIN ] || exit 0
10 start() {
11 printf "Starting ModemManager: "
12 umask 077
13 start-stop-daemon -S -q -b -m -p $PIDFILE \
14 --exec /usr/sbin/ModemManager
15 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 stop() {
18 printf "Stopping ModemManager: "
19 start-stop-daemon -K -q -p $PIDFILE
20 [ $? = 0 ] && { echo "OK"; rm -f $PIDFILE; } || echo "FAIL"
22 restart() {
23 stop
24 start
27 case "$1" in
28 start)
29 start
31 stop)
32 stop
34 restart|reload)
35 restart
38 echo "Usage: $0 {start|stop|restart}"
39 exit 1
40 esac
42 exit $ret