--- /dev/null
+description "starting connman"
+author "Jukka Rissanen"
+
+console none
+
+# We do not start automatically yet
+#start on started xsession
+stop on ACT_DEAD
+stop on stopping dbus
+
+pre-start script
+ /usr/sbin/waitdbus system
+ initctl stop icd2
+ initctl stop wlancond
+ initctl stop dnsmasq
+end script
+
+post-stop script
+ # stop dnsmasq, wlancond and icd2 because
+ # they are in use in this system at the moment
+ initctl start dnsmasq
+ initctl start wlancond
+ initctl start icd2
+ killall wpa_supplicant
+end script
+
+exec /usr/sbin/connmand -n -i wlan*
+
+respawn