diff options
| author | Michael Neves | 2013-06-20 13:57:14 +0200 |
|---|---|---|
| committer | Michael Neves | 2013-06-20 13:57:14 +0200 |
| commit | cbc9a3a486bd77062a105ab457d323f65f370d1d (patch) | |
| tree | e7af291c2563c266d2044262b0f58f1d10897a98 /remote/modules/vmchooser/data | |
| parent | [udhcpc] remove old IP adress if new one is obtained. Update hostname if obta... (diff) | |
| parent | [rootfs-stage32] fixes (diff) | |
| download | tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.tar.gz tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.tar.xz tm-scripts-cbc9a3a486bd77062a105ab457d323f65f370d1d.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/vmchooser/data')
| -rwxr-xr-x | remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh index 6c08653f..84ece685 100755 --- a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh +++ b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh @@ -376,15 +376,20 @@ writelog "\tVM Hostname:\t\t$hostname" ################################################################################ ### Setup the rest of the environment and run the configured vm ################################################################################ - +# 8086:1e20 +if lspci -n | grep -E -i '8086:1e20( |$)'; then + VOL="100%" # bwPC 4: Speaker too quiet :-( +else + VOL="80%" +fi # Adjust sound volume #writelog "Unmuting sound...\c " -amixer -q sset Master 80% unmute 2>/dev/null -amixer -q sset PCM 80% unmute 2>/dev/null -amixer -q sset CD 80% unmute 2>/dev/null -amixer -q sset Headphone 80% unmute 2>/dev/null -amixer -q sset Front 80% unmute 2>/dev/null # in SUSE 11.0 it's headphone -amixer -q sset Speaker 80% unmute 2>/dev/null # annoying built-in speaker +amixer -q sset Master "$VOL" unmute 2>/dev/null +amixer -q sset PCM "$VOL" unmute 2>/dev/null +amixer -q sset CD "$VOL" unmute 2>/dev/null +amixer -q sset Headphone "$VOL" unmute 2>/dev/null +amixer -q sset Front "$VOL" unmute 2>/dev/null # in SUSE 11.0 it's headphone +amixer -q sset Speaker "$VOL" unmute 2>/dev/null # annoying built-in speaker #writelog "finished\n" # Copy guest configuration (with added information) config.xml to be accessed |
