From 1446a4e71e086295fcef5ed42339e34ed83a69d4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Dec 2017 20:10:00 -0200 Subject: Provide default value for sound option --- kvmx | 6 +++++- kvmxfile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kvmx b/kvmx index b5182cb..ad31f19 100755 --- 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 diff --git a/kvmxfile b/kvmxfile index 8d8a265..5338f59 100644 --- 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" -- cgit v1.2.3