Initial maemo support.
[connman] / debian / connman.upstart
diff --git a/debian/connman.upstart b/debian/connman.upstart
new file mode 100644 (file)
index 0000000..511fe10
--- /dev/null
@@ -0,0 +1,29 @@
+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