 		dnsmasq.stop()
 	]
 	.then ->
-		systemd.start('connman.service')
+		manager.start()

	.then ->
		hostapd.start()
	.then ->
		dnsmasq.start()

exports.stop = ->
	if not started
		return Promise.resolve()

	started = false



started = false

exports.start = (manager) ->
	if started
		return Promise.resolve()

	started = true

	console.log("Stopping service, starting hotspot")
	
	manager.stop()
	.delay(2000)
	.then ->
		execAsync('rfkill unblock wifi')
