~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/alsa-store.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# alsa-store - Store sound card state
2
 
#
3
 
# This task saves the sound card(s') mixer state(s) to
4
 
# /var/lib/alsa/asound.state on reboot or shutdown
5
 
 
6
 
description     "Store Sound Card State"
7
 
        
8
 
start on runlevel [!2345]
9
 
 
10
 
env ALSACTLHOME=/var/run/alsa
11
 
 
12
 
task
13
 
 
14
 
pre-start script
15
 
    if ! test -d $ALSACTLHOME ; then
16
 
        mkdir -p $ALSACTLHOME
17
 
    fi
18
 
    if test -f /var/lib/alsa/state-daemon.conf ; then
19
 
        stop; exit 0
20
 
    fi
21
 
end script
22
 
 
23
 
exec /usr/sbin/alsactl -E HOME="$ALSACTLHOME" store