# agp-modules
#
# This service is to load AGP modules needed at boot

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

   amixer set "Input Source" "Front Mic"
   amixer set "Capture" 50
   amixer set "Front" 100
   amixer set "Headphone" 100
   amixer set "Speaker" 100

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

end script
