This file is indexed.

/usr/share/tcos/hooks-addons/70tcosmonitor 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
132
# this file copies tcosxmlrpc server into initramfs
# and adds startup scripts of tcosxmlrpc server

if [ $TCOS_MONITOR ]; then

stat_before

# EJECT for mount/umount cdrom
copy_exec /usr/bin/eject /usr/bin/


# SCROT package
copy_exec /usr/bin/scrot /usr/bin/

IMLIB_DIR=/usr/lib/imlib2/loaders/
[ -d $USRLIB_MULTIARCH/imlib2/loaders ] && IMLIB_DIR=$USRLIB_MULTIARCH/imlib2/loaders
#/usr/lib/x86_64-linux-gnu/imlib2/loaders/png.so


mkdir -p $DESTDIR/$IMLIB_DIR
cpifexists $IMLIB_DIR/png.so        $IMLIB_DIR/
cpifexists $IMLIB_DIR/jpeg.so       $IMLIB_DIR/


# screenshot script and webserver
cpifexists ${TCOS_BINS}/screenshot.sh      /sbin/

cpifexists ${TCOS_BINS}/useallmodules.sh   /sbin/
cpifexists ${TCOS_BINS}/devicesctl.sh      /sbin/
cpifexists ${TCOS_BINS}/vnc-controller.sh  /sbin/
cpifexists ${TCOS_BINS}/vlc-controller.sh  /sbin/
cpifexists ${TCOS_BINS}/rtp-controller.sh  /sbin/
cpifexists ${TCOS_BINS}/pactl-controller.sh      /sbin/

# new VNC client (avalaible in armel)
mkdir -p $DESTDIR/etc/X11/app-defaults
# don't run ShowPopup() with F8
grep -v ShowPopup /etc/X11/app-defaults/Vncviewer > $DESTDIR/etc/X11/app-defaults/Vncviewer
cpifexists /usr/bin/xtightvncviewer /usr/bin/

cpifexists ${TCOS_BINS}/soundctl.sh /sbin/
cpifexists ${TCOS_BINS}/configctl.sh /sbin/

# udev process
cpifexists ${TCOS_BINS}/tcos-udevd.sh           /sbin/
mkdir -p ${DESTDIR}/etc/udev/rules.d/
cpifexists ${TCOS_DIR}/xmlrpc/050_tcos_devices.rules  /etc/udev/rules.d/

# with new kernels (>= 2.6.22) need mount/umount events
cpifexists ${TCOS_BINS}/mount-listener           /usr/sbin/
cpifexists ${TCOS_BINS}/save-udev.sh             /usr/sbin/
cpifexists ${TCOS_BINS}/listener-daemon.sh       /usr/sbin/
cpifexists ${TCOS_BINS}/cdrom-mount              /usr/sbin/

# need udevinfo in listener-daemon.sh
if [ ! -e /usr/bin/udevinfo ] || readlink /usr/bin/udevinfo | grep -q udevadm; then
  cat << EOF > $DESTDIR/usr/bin/udevinfo
#!/bin/sh
/sbin/udevadm info \$@
EOF
  chmod +x $DESTDIR/usr/bin/udevinfo
else
  cpifexists /usr/bin/udevinfo                     /usr/bin/
fi

# tcosxmlrpc utils
cpifexists ${TCOS_BINS}/tcosxmlrpc  /usr/bin/
cpifexists ${TCOS_BINS}/lockscreen  /usr/bin/
cpifexists ${TCOS_BINS}/screensize  /usr/bin/
cpifexists ${TCOS_BINS}/lockvlc     /usr/bin/
cpifexists ${TCOS_BINS}/lockvnc     /usr/bin/
cpifexists ${TCOS_BINS}/get_server  /usr/bin/

# copy locked image
mkdir -p ${DESTDIR}/usr/share/tcos-core/
if [ -e /usr/share/tcos-core/lockscreen-custom.png ];then
  cp /usr/share/tcos-core/lockscreen-custom.png ${DESTDIR}/usr/share/tcos-core/
else
  cp /usr/share/tcos-core/lockscreen.png ${DESTDIR}/usr/share/tcos-core/
fi


cpifexists ${TCOS_BINS}/getinfo.sh       /sbin/
chmod +x $DESTDIR/sbin/getinfo.sh


cat << EOF >  $DESTDIR/sbin/restartx
#!/bin/sh

restartxorg &
exit 0
EOF
chmod +x $DESTDIR/sbin/restartx


# pci database
copy_exec /usr/bin/lspci /usr/bin/
mkdir -p $DESTDIR/usr/share/misc/
[ -f /usr/share/misc/pci.ids ]    && cpifexists /usr/share/misc/pci.ids    /usr/share/misc/
[ -f /usr/share/misc/pci.ids.gz ] && cpifexists /usr/share/misc/pci.ids.gz /usr/share/misc/



cpifexists ${TCOS_DIR}/xmlrpc/abyss.conf     /etc/
cpifexists ${TCOS_DIR}/xmlrpc/mime.types     /etc/

# configure /etc/abyss.conf
# abs path of mime.types
sed -i s/"etc"/"\/etc"/g ${DESTDIR}/etc/abyss.conf

# configure user
sed -i s/"nobody"/"root"/g ${DESTDIR}/etc/abyss.conf

mkdir -p $DESTDIR/var/log
mkdir -p $DESTDIR/var/www

# add launcher
cat << EOF > $DESTDIR/sbin/startxmlrpc
#!/bin/sh
killall tcosxmlrpc >/dev/null 2>&1
cd /
/usr/bin/tcosxmlrpc /etc/abyss.conf >> /var/log/tcosxmlrpc.log 2>&1
exit 0
EOF
chmod +x $DESTDIR/sbin/startxmlrpc


stat_after "TcosMonitor"

else
   _verbose "(25tcosmonitor) TCOS_TCOSMONITOR Disabled"
fi