/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-pulseaudio-tweaks is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # a number of hacks needed to resolve: http://bugs.debian.org/537526
case "$MODE" in
finalization)
# some versions of pulseaudio need /var/lib/pulse to be present, but
# create it dynamically. create the directory so we can bind-mount it.
mkdir $ROOT/var/lib/pulse
# workaround to get pulseaudio to start on thin-clients with only 64MB
# of ram.
if [ -f "$ROOT/etc/pulse/daemon.conf" ] && [ "$DIST" != "lenny" ]; then
echo 'shm-size-bytes = 65535' >> "$ROOT/etc/pulse/daemon.conf"
fi
# move aside the system.pa, which tries to load hal-based modules, and
# dies badly. it works fine without it.
if [ -f "$ROOT/etc/pulse/system.pa" ]; then
mv "$ROOT/etc/pulse/system.pa" "$ROOT/etc/pulse/system.pa.ltsp" || true
fi
;;
esac
|