aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx6
1 files changed, 5 insertions, 1 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