#!/bin/sh
# /etc/rc.d/connamnd: start/stop connman
#
. /lib/lsb/init-functions
BIN_FILE="/usr/sbin/connmand"
BIN2_FILE="/usr/sbin/connman-vpnd"
case $1 in
	start)
		log_info_msg "Connman başlatılıyor...."
		start_daemon $BIN_FILE
		evaluate_retval
		;;
	stop)
		log_info_msg "Connamn durduruluyor..."
		killproc $BIN_FILE
		killproc $BIN2_FILE
		evaluate_retval
		;;
	restart)
		$0 stop
		sleep 2
		$0 start
		;;
	status)
        statusproc ${BIN_FILE}
        ;;
	*)
		echo "Usage: $0 [start|stop|restart]"
		;;
esac

# End of file
# vim: set ft=sh noet :
