From 83f5d26a85618e0abb740481a0f8346e43dfd3a7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 18 Mar 2012 02:36:21 +0000 Subject: [PATCH] * Ignore the "No soundcards found" error. svn path=/nixos/trunk/; revision=33224 --- modules/services/audio/alsa.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/audio/alsa.nix b/modules/services/audio/alsa.nix index 7d4cc100fd2..d16a6794832 100644 --- a/modules/services/audio/alsa.nix +++ b/modules/services/audio/alsa.nix @@ -55,13 +55,13 @@ in mkdir -m 0755 -p $(dirname ${soundState}) # Restore the sound state. - ${alsaUtils}/sbin/alsactl -f ${soundState} restore || true + ${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore ''; postStop = '' # Save the sound state. - ${alsaUtils}/sbin/alsactl -f ${soundState} store + ${alsaUtils}/sbin/alsactl --ignore -f ${soundState} store ''; };