This file is indexed.

/usr/share/tcos/hooks-addons/51paquito 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
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# hook addon for INTEL DOT STATION alias Paquito

PAQUITO_MODULES="intel-agp agpgart i2c-i810 intelfb i810fb vfb video"


make_launcher() {
cat << EOF > ${DESTDIR}/scripts/tcos-bottom/16paquito
#!/bin/sh
#

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


quiet=n


. /scripts/functions
. /conf/tcos.conf
. /conf/tcos-run-functions

# check if we are in paquito machine
test1=0
test1=\$(lspci | grep -c "PCTel Inc HSP MicroModem 56" )

test2=0
test2=\$(lspci|grep -c "Intel Corporation 82810 CGC")

if [ "\$test1" = "0" ] || [ "\$test2" = "0" ] ; then
   # not in paquito, exit now
   exit 0
fi

log_begin_msg "Loading Intel Dot Station (Paquito) modules"

  PAQUITO_MODULES="${PAQUITO_MODULES}"
  _log "PAQUITO loading modules: \${PAQUITO_MODULES}"

  for mod in \${PAQUITO_MODULES}; do
    modprobe  \$mod >> /tmp/initramfs.debug 2>&1
  done

  # test if we have intel-drv or i810
  if [ -L /usr/lib/xorg/modules/drivers/i810_drv.so ]; then
    configurexorg --newsettings --xdriver=intel --outputfile=/etc/X11/xorg.conf 2>> /tmp/initramfs.debug
  else
    configurexorg --newsettings --xdriver=i810 --outputfile=/etc/X11/xorg.conf 2>> /tmp/initramfs.debug
  fi
  

log_end_msg \$?

EOF
chmod +x ${DESTDIR}/scripts/tcos-bottom/16paquito

}

if [ "$(pathof Xorg)" = /usr/bin/Xorg ]; then
   XORG=7
else
   XORG=6
fi

# test if we have intel-drv or i810
if [ -L /usr/lib/xorg/modules/drivers/i810_drv.so ]; then
  intel_driver=intel
else
  intel_driver=i810
fi


if [ $TCOS_PAQUITO ] && [ "$intel_driver" = "i810" ] ; then
  stat_before
 
    for mod in ${PAQUITO_MODULES}; do
      manual_add_modules $mod
    done

    cpifexists /usr/lib/libI810XvMC.so.1 /usr/lib

    mkdir -p ${DESTDIR}/usr/lib/dri
    cpifexists /usr/lib/dri/i810_dri.so /usr/lib/dri

    if [ $XORG = 6 ];then
        if [ ! -e $DESTDIR/usr/X11R6/lib/modules/drivers/i810_drv.so ]; then
          cp -ra /usr/X11R6/lib/modules/drivers/i810_drv.so $DESTDIR/usr/X11R6/lib/modules/drivers
       fi
    else
       if [ ! -e $DESTDIR/usr/lib/xorg/modules/drivers/i810_drv.so ]; then
          cp -ra /usr/lib/xorg/modules/drivers/i810_drv.so $DESTDIR/usr/lib/xorg/modules/drivers
       fi
    fi
    make_launcher

  stat_after "Intel Dot Station (Paquito) drivers support [i810]"

elif [ $TCOS_PAQUITO ] && [ "$intel_driver" = "intel" ] ; then
  stat_before

    for mod in ${PAQUITO_MODULES}; do
      manual_add_modules $mod
    done

    cpifexists /usr/lib/libI810XvMC.so.1 /usr/lib

    mkdir -p ${DESTDIR}/usr/lib/dri
    cpifexists /usr/lib/dri/i810_dri.so /usr/lib/dri
    if [ $XORG = 6 ];then
        if [ ! -e $DESTDIR/usr/X11R6/lib/modules/drivers/intel_drv.so ]; then
          cp -ra /usr/X11R6/lib/modules/drivers/intel_drv.so $DESTDIR/usr/X11R6/lib/modules/drivers
       fi
    else
       if [ ! -e $DESTDIR/usr/lib/xorg/modules/drivers/intel_drv.so ]; then
          cp -ra /usr/lib/xorg/modules/drivers/intel_drv.so $DESTDIR/usr/lib/xorg/modules/drivers
       fi
    fi
    make_launcher

  stat_after "Intel Dot Station (Paquito) drivers support [intel]"


elif [ $TCOS_PAQUITO ] && [ "$intel_driver" != "i810" ] && [ "$intel_driver" != "intel" ]; then
  echo ""
  echo "   WARNING: Intel Dot Station (Paquito) enabled but don't have installed i810/intel video driver package"
  echo ""
  echo "            Please install xserver-xorg-driver-i810 or xserver-xorg-video-intel"
  echo ""
fi