/usr/share/tcos/hooks-addons/20alsa is in initramfs-tools-tcos 0.89.93ubuntu2.
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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | # hooks addon SOUND support
# need alsa-utils
if [ ! $TCOS_SOUND ]; then
_verbose "(20alsa) TCOS_SOUND disabled"
else
stat_before
# TCOS MIXER (include ALSA and OSS support)
cpifexists ${TCOS_BINS}/tmixer /usr/bin/
mkdir -p $DESTDIR/usr/share/
copydir /usr/share/alsa/ /usr/share/
# Ubuntu make pulse default in this dir (thin clients must use ALSA directly)
rm -f $DESTDIR/usr/share/alsa/*pulse*
mkdir -p $DESTDIR/var/run/alsa
mkdir -p $DESTDIR/lib
if [ -d /lib/alsa ]; then
copydir /lib/alsa /lib/
fi
mkdir -p $DESTDIR/etc/init.d/
[ -e /etc/init.d/alsa-utils ] && cpifexists /etc/init.d/alsa-utils /etc/init.d/
if [ -d /etc/alsa ]; then
copydir /etc/alsa/ /etc/
fi
if [ -f /etc/modutils/alsa-base ]; then
# OLD alsa-base
mkdir -p $DESTDIR/etc/modutils/
cpifexists /etc/modutils/alsa-base /etc/modutils
fi
if [ -f /etc/modprobe.d/alsa-base ]; then
# NEW alsa-base
mkdir -p $DESTDIR/etc/modprobe.d/
cpifexists /etc/modprobe.d/alsa-base /etc/modprobe.d/
fi
if [ -f /etc/modprobe.d/alsa-base.conf ]; then
# NEW alsa-base
mkdir -p $DESTDIR/etc/modprobe.d/
cpifexists /etc/modprobe.d/alsa-base.conf /etc/modprobe.d/
fi
ALSA_LIB_DIR=/usr/lib/alsa-lib/
[ -d $USRLIB_MULTIARCH/alsa-lib ] && ALSA_LIB_DIR=$USRLIB_MULTIARCH/alsa-lib
_verbose "(20alsa) alsa-lib=$ALSA_LIB_DIR"
mkdir -p ${DESTDIR}/$ALSA_LIB_DIR
[ -e $ALSA_LIB_DIR/libasound_module_pcm_pulse.so ] && \
cpifexists $ALSA_LIB_DIR/libasound_module_pcm_pulse.so $ALSA_LIB_DIR
[ -e $ALSA_LIB_DIR/libasound_module_ctl_pulse.so ] && \
cpifexists $ALSA_LIB_DIR/libasound_module_ctl_pulse.so $ALSA_LIB_DIR
[ -e $ALSA_LIB_DIR/libasound_module_conf_pulse.so ] && \
cpifexists $ALSA_LIB_DIR/libasound_module_conf_pulse.so $ALSA_LIB_DIR
[ -e $ALSA_LIB_DIR/libasound_module_pcm_alsa_dsp.so ] && \
cpifexists $ALSA_LIB_DIR/libasound_module_pcm_alsa_dsp.so $ALSA_LIB_DIR
stat_after "Alsa sound support"
fi # end of TCOS_SOUND
|