Package: ltsp-client
Severity: important
Version: 0.99debian10
if you specify SOUND=false or LOCALDEV=false in lts.conf, the
ltsp-client init scripts treats it identically to if "true" was
configured.
atached is a patch which corrects this.
live well,
vagrant
=== modified file 'client/ltsp_functions'
--- client/ltsp_functions 2006-02-21 20:21:36 +0000
+++ client/ltsp_functions 2007-01-06 03:08:53 +0000
@@ -36,3 +36,10 @@
[ -d /tmp/info ] || mkdir /tmp/info
eval "echo \$${VAR}" >/tmp/info/${VAR}
}
+
+get_boolean(){
+ case "$(echo $1 | tr 'A-Z' 'a-z')" in
+ true|y|yes) return 0 ;;
+ *) return 1 ;;
+ esac
+}
=== modified file 'debian/ltsp-client.init'
--- debian/ltsp-client.init 2006-11-14 22:21:04 +0000
+++ debian/ltsp-client.init 2007-01-06 03:08:52 +0000
@@ -35,7 +35,7 @@
}
start_sound() {
- if [ -n "$SOUND" ]; then
+ if get_boolean "$SOUND" ; then
# Detect and report a common problem with thin clients
if [ ! -f /dev/dsp ] ; then
warn "Sound requested but /dev/dsp is missing. Continuing."
=== modified file 'debian/ltsp-client.ltsp-client-setup.init'
--- debian/ltsp-client.ltsp-client-setup.init 2006-12-21 20:54:57 +0000
+++ debian/ltsp-client.ltsp-client-setup.init 2007-01-06 03:08:52 +0000
@@ -36,7 +36,7 @@
}
configure_localdev() {
- if [ -n "$LOCALDEV" ]; then
+ if get_boolean "$LOCALDEV" ; then
if [ ! -d /var/run/drives ];then
mkdir /var/run/drives
fi