# psb-modules
#
# This service is to load poulsbo modules needed at boot

start on stopped snd-modules

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 drm_psb
   touch /var/tmp/poulsbo

   amixer sset "Input Source" "Front Mic"
   amixer sset "Capture" cap 90%
   amixer sset "Front" 100%
   amixer sset "PCM" 100%

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

end script
