aboutsummaryrefslogtreecommitdiff
path: root/network/connman
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-10 12:26:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-10 12:26:22 +0700
commit986ac150c5cc1a546853541ce1e924c0adf646da (patch)
tree037a2324ceeba34a1d5bb3d3e1266e15a301a2bf /network/connman
parent06ade6bf6345eefe1c4e468c35f909ac89a8ea49 (diff)
network/connman: Added missing rc.connmand.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/connman')
-rw-r--r--network/connman/rc.connmand33
1 files changed, 33 insertions, 0 deletions
diff --git a/network/connman/rc.connmand b/network/connman/rc.connmand
new file mode 100644
index 0000000000000..cac2087cfa7a0
--- /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