# latebootcmds
#
# Run delayed boot commands.  Useful for delaying modprobes to reduce boot-time.

description "latebootcmds"
author      "Debbie Beliveau <debbie.beliveau@canonical.com>"

start on boot-phase ui-started

script

	if [ -x /usr/sbin/runlatebootcmds ]; then
		# For now, we sleep to let UI finish loading. In the future, we need
		# to be smarter about this (UI needs to tell us exactly when its done
		# loading)
		sleep 6

		/usr/sbin/runlatebootcmds
	fi

	initctl emit boot-phase late-boot-cmds-run -n

end script

