diff options
author | Ryan P.C. McQuen <ryanpcmcquen@gmail.com> | 2014-10-22 23:38:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-22 23:38:15 +0700 |
commit | f92495856d317b27b79e6bd8dd5c60ff1574706e (patch) | |
tree | 154ac254a4ca3b5e0d7e793b7a8410fd2ae601be /network/connman/rc.connmand | |
parent | 4c4b371001ab3fecd78688069b983137d17190a4 (diff) | |
download | slackbuilds-f92495856d317b27b79e6bd8dd5c60ff1574706e.tar.gz |
network/connman: Added (open source connection manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |