# harbour-modules
#
# This service is to load modules needed at boot

description "Harbour modules"
author	    "Steve Magoun <steve.magoun@canonical.com>"

start on runlevel 2

script

	# By default, an upstart task will automatically exit on an error. We
	# want the task to complete even if any of our commands return an error
	# so we turn off the exit-on-error option
	set +e

	modprobe intel_agp
	modprobe drm

	# In the future, should check if bluetooth hw exists first
	modprobe hci_usb
	modprobe bluetooth

	# Currently no such module exists on the device...
	# modprobe r8101

	# Re-enable the exit-on-error option now that we're done
	set -e
    
end script
