diff --git a/alsa-restore.service b/alsa-restore.service new file mode 100644 index 0000000..2cffc7c --- /dev/null +++ b/alsa-restore.service @@ -0,0 +1,11 @@ +[Unit] +Description=Restore Sound Card State +DefaultDependencies=no +After=sysinit.target +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 +StandardOutput=syslog diff --git a/alsa-store.service b/alsa-store.service new file mode 100644 index 0000000..5995e06 --- /dev/null +++ b/alsa-store.service @@ -0,0 +1,9 @@ +[Unit] +Description=Store Sound Card State +DefaultDependencies=no +Before=shutdown.target + +[Service] +Type=oneshot +ExecStart=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store +StandardOutput=syslog