Maemo 5 boot process

See http://talk.maemo.org/showthread.php?t=87959 for discussion.

*** Loaded by kernel
	/sbin/preinit

*** Loaded by upstart from /etc/event.d
	welcome
	rcS
		dsme
			bme (may emit G_NOKIA_READY if /var/lib/ke-recv/usb_phonet_mode)
				rc-default (emits STATE according to /tmp/STATE)
			kernel-power
		sshd

** State USER
	console (starts serial console /etc/event.d/tty* if R&D mode)
	dbus
		alsaped
		csd
		dsme-dbus
		dsme-thermal
		dsp
			dsp-manager
		hal
			rcS-late (emits MOUNTS_OK)
				pymaemo-optify
			ohmd
			sgx
				xomap
		mce
		n900-fmrx-enabler
		omap3camd0
		pulseaudio
		sms-manager
		sscd (emits cellmo poweron/reset/poweroff/sim.. signal)
		sysinfod

* on cellmo ... (emitted by sscd)
	gprs-provisioning	(on cellmo sim ready)
	pin-query		(on cellmo sim code-required)

* on G_NOKIA_READY
	phonet_at
	softupd

* on MOUNTS_OK
	clock-daemon
	hildon-control-panel-personalisation
	rc-clean-fail-thumbnail
	xsession
		(wait until xomap ready, 
			emit XSESSIONS_STARTING or XSESSIONS_ACTDEAD_STARTING if ACTDEAD
		 then
			exec /etc/X11/Xsession as user)

* on XSESSIONS_STARTING
	bluetoothd
		bluetooth-sysinfo (when starting)
		bluetooth-dun (when started)
	camkeyd
	hildon-desktop
        	app-detect
		fmtx
		funambol-cpp-api
		headphoned
		ke-recv
			nokiamessaging
		ke-recv-extra
		kernel-modules
		location-proxy
		omapcp
		tonegend
		wlancond
			dnsmasq
			icd2
	iphb
	signon

* /etc/X11/Xsession (sources, does not execute, scripts)
	if USER
		run-parts /etc/X11/Xsession.d
			00settings
			01dbus
			01maemo-xinput-sounds
			02maemo-launcher
			03alarmd
			03gtk2-engines-sapwood
			03osso-systemui
			04b_start_matchbox
			04devlock_blocker
			05connui-conndlgs-cellular
			06stop_matchbox
			07ssc-ready
			if ! -e /var/dont_start_suw
				30osso-startup-wizard
				if LOCALE_SET_BY_SUW
					40osso-systemui
					41dbus
					41maemo-xinput-sounds
					42maemo-launcher
					50alarmd
					51osso-systemui
			60mission-control
			65hildon-sv-notification-daemon
			90gpg-agent

		run-parts /etc/X11/Xsession.post
			15hildon-status-menu
			17camera-ui
			18hildon-home
			20hildon-desktop
			21hildon-desktop-wait
			22camera-ui
			22clipboard-manager
			23tracker
			24connui-conndlgs
			25hildon-input-method-configurator
			30tablet-browser-daemon
			32mafw-gst-renderer
			32mafw-gst-iradio-source
			32mafw-tracker-source
			32mafw-upnp-source
			40hildon-application-manager
			41tmp-reaper
			55ohm-session-agent
			66maesync-controller
			68syncd
			70osso-abook-home-applet
			99initdone

	if ACTDEAD
		run-parts /etc/X11/Xsession.actdead
			00settings
			01dbus
			03alarmd
			10sapwood
			14osso-systemui
			15matchbox
			99initdone

** State ACTDEAD
	actdead
	cmt-act-dead
	console
	dbus-actdead
		alsaped
		dsme-dbus
		hal
			rcS-late (emits MOUNTS_OK)
				pymaemo-optify
			ohmd
			sgx
				xomap
		mce
		n900-fmrx-enabler
		ohmd
		pulseaudio

* on XSESSIONS_ACTDEAD_STARTING
	-

** State TEST
	wl1251-cal