]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Provide default value for sound option
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 22:10:00 +0000 (20:10 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Dec 2017 22:10:00 +0000 (20:10 -0200)
kvmx
kvmxfile

diff --git a/kvmx b/kvmx
index b5182cb1ae8a8c9f1cd28e8f4bba24f83ff66f78..ad31f193f02cd08229bdecc5174362f131844b05 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -390,7 +390,11 @@ function kvmx_up {
     spice_opts="$spice_opts -chardev spicevmc,id=spicechannel0,name=vdagent"
   fi
 
-  if [ -z "$sound" ] || [ "$sound" != "0" ]; then
+  if [ "$sound" != "0" ]; then
+    if [ -z "$sound" ]; then
+      sound="ac97"
+    fi
+
     sound_opts="-soundhw $sound"
   fi
 
index 8d8a26523598955783ef3a3e5f456e845f06c9b3..5338f59a345d07270b4cf9fe0d88998bfe0a8601 100644 (file)
--- a/kvmxfile
+++ b/kvmxfile
@@ -84,7 +84,7 @@ run_xephyr="0"
 
 # Sound
 #sound="0"
-sound="ac97"
+#sound="ac97"
 
 # Set additional hostfwd mappings
 #port_mapping="hostfwd=tcp:127.0.0.1:8080-:80,hostfwd=tcp:127.0.0.1:8443-:443"