This file is indexed.

/usr/share/tcos/hooks-addons/55vnc is in initramfs-tools-tcos 0.89.86.

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
# hooks addon to use X11VNC
# need x11vnc package


if [ ! ${TCOS_X11VNC} ]; then
  _verbose "(55vnc) TCOS_X11VNC disabled"
else
 if [ ! -d /usr/share/doc/x11vnc ]; then
   echo "WARNING:"
   echo ""
   echo "x11vnc not found, install x11vnc or disable TCOS_X11VNC."
   echo "    => # apt-get install x11vnc"
   echo ""
 else
  stat_before
  cpifexists /usr/bin/x11vnc       /usr/bin/
  
  
  cat <<EOF > $DESTDIR/sbin/startvnc
#!/bin/sh
# kill all x11vnc process
killall x11vnc >/dev/null 2>&1
sleep 1
DISPLAY=:0 x11vnc -o /tmp/vnc.log -forever -shared -noshm -rfbauth /tmp/.tcosvnc
#FIXME (daemonize ??)
EOF
  chmod +x $DESTDIR/sbin/startvnc
  stat_after "x11vnc"

# FIXME use inetd for launching (man x11vnc)
#-inetd
#  Launched  by inetd(8): stdio instead of listening socket.  Note: if you are not redirecting stderr to a log
#  file (via shell 2> or -o option) you MUST also specify the -q option, otherwise  the  stderr  goes  to the
#  viewer  which will cause it to abort.  Specifying both -inetd and -q and no -o will automatically close the stderr.


 fi
fi #end of TCOS_X11VNC