alsa-utils/alsa-restore.service

18 lines
501 B
SYSTEMD
Raw Normal View History

2013-04-12 09:19:29 +00:00
#
# Note that two different ALSA card state management schemes exist and they
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
#
2011-01-28 13:28:23 +00:00
[Unit]
Description=Restore Sound Card State
2013-04-12 09:19:29 +00:00
ConditionPathExists=!/etc/alsa/state-daemon.conf
2011-01-28 13:28:23 +00:00
DefaultDependencies=no
2013-04-12 09:19:29 +00:00
After=alsa-state.service
2011-01-28 13:28:23 +00:00
Before=shutdown.target
Conflicts=shutdown.target
[Service]
Type=oneshot
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
2013-04-12 09:19:29 +00:00
StandardOutput=syslog