diff options
Diffstat (limited to 'network/connman/rc.connmand')
-rw-r--r-- | network/connman/rc.connmand | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/network/connman/rc.connmand b/network/connman/rc.connmand new file mode 100644 index 0000000000..cac2087cfa --- /dev/null +++ b/network/connman/rc.connmand @@ -0,0 +1,33 @@ +#!/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 |