This file is indexed.

/usr/share/tcos/hooks-addons/96modules 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
# hook addon for blacklist or add kernel modules options on startup

stat_before

cat << EOF > ${DESTDIR}/scripts/init-top/tcos_modules
#!/bin/sh
#

# new header not using prereqs
if [ "\$1" = "prereqs" ]; then
  echo ""
  exit 0
fi


quiet=n

FORCE_MODULES=""
BLACKLIST_MODULES=""

for x in \$(cat /proc/cmdline); do
   case \$x in
      force_modules=*)
         FORCE_MODULES="\$(echo \${x#force_modules=}|tr "," " ")"
         ;;
      blacklist_modules=*)
         BLACKLIST_MODULES="\$(echo \${x#blacklist_modules=}|tr "," " ")"
         ;;
   esac
done

if [ "\$FORCE_MODULES" != "" ] ; then
   for x in \$FORCE_MODULES ; do
      modprobe -Q \$x 2>/dev/null || true
   done
fi

if [ "\$BLACKLIST_MODULES" != "" ] ; then
   for x in \$BLACKLIST_MODULES ; do
      echo "blacklist \$x" >> /etc/modprobe.d/blacklist-tcos.conf 2>/dev/null || true
   done
fi


# Fix corruption MAC address in Realtek PCI Express RTL810xE with kernel module r8169.ko
if [ "\$(pcimodules | grep -c r8101)" != "0" ]; then
  if [ "\$(modprobe -l | grep -c r8101)" != "0" ]; then
     modprobe -Q r8101 2>/dev/null || true
     if [ "\$(dmesg | grep -c -i rtl*810.e)" != "0" ]; then
         echo "blacklist r8169" >> /etc/modprobe.d/blacklist-tcos.conf 2>/dev/null || true
     else
         modprobe -Q -r -f r8101 2>/dev/null || true
     fi
  else
     echo -n -e "WARNING!!! Your computer has an Ethernet Realtek 810xE PCI Express does not work correctly with kernel module r8169. Please regenerate TCOS images, adding the extra kernel module r8101 and blacklisting r8169 kernel modules."
  fi
fi


EOF
chmod +x ${DESTDIR}/scripts/init-top/tcos_modules


# add options to snd-hda-intel
if ! grep -q snd-hda-intel ${DESTDIR}/etc/modprobe.d/alsa-base* ; then
   [ -e ${DESTDIR}/etc/modprobe.d/alsa-base ] && \
	mv ${DESTDIR}/etc/modprobe.d/alsa-base ${DESTDIR}/etc/modprobe.d/alsa-base.conf
   echo "options snd-hda-intel model=auto" >> ${DESTDIR}/etc/modprobe.d/alsa-base.conf
fi


stat_after "Tcos Kernel modules support"