slackbuilds_ponce/network/connman/rc.connmand
Ryan P.C. McQuen f92495856d network/connman: Added (open source connection manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-10-22 23:38:15 +07:00

33 lines
468 B
Bash

#!/bin/sh
# Start/stop/restart the connman daemon.
connmand_start() {
if [ -x /usr/sbin/connmand ]; then
echo "Starting connman daemon: /usr/sbin/connmand "
/usr/sbin/connmand
fi
}
connmand_stop() {
killall connmand 2> /dev/null
}
connmand_restart() {
connmand_stop
sleep 1
connmand_start
}
case "$1" in
'start')
connmand_start
;;
'stop')
connmand_stop
;;
'restart')
connmand_restart
;;
*)
echo "usage $0 start|stop|restart"
esac