Author: eelco
Date: Sun Mar 18 02:36:21 2012
New Revision: 33224
URL: https://nixos.org/websvn/nix/?rev=33224&sc=1

Log:
* Ignore the "No soundcards found" error.

Modified:
   nixos/trunk/modules/services/audio/alsa.nix

Modified: nixos/trunk/modules/services/audio/alsa.nix
==============================================================================
--- nixos/trunk/modules/services/audio/alsa.nix Sun Mar 18 02:10:39 2012        
(r33223)
+++ nixos/trunk/modules/services/audio/alsa.nix Sun Mar 18 02:36:21 2012        
(r33224)
@@ -55,13 +55,13 @@
             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
           '';
       };
 
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to