This file is indexed.

/usr/share/tcos/scripts/tcos-bottom/35services is in initramfs-tools-tcos 0.89.93ubuntu2.

This file is owned by root:root, with mode 0o755.

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
#!/bin/sh
# 
if [ "$1" = "prereqs" ]; then
  exit 0
fi

quiet=n


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

# if break=inittcos STOP here
maybe_break services



if [ "$(which dropbear)" ] ; then
 # need read from /dev/urandom not /dev/random
 # http://www.nomis52.net/?section=projects&sect2=netgear&page=dropbear
 # ugly hack or recompile with #define DROPBEAR_RANDOM_DEV "/dev/urandom"
 mv /dev/random /dev/random.old
 ln -s /dev/urandom /dev/random

 _log "INITTCOS starting dropbear ssh daemon"
 log_begin_msg "Starting dropbear SSH daemon"
   ln -s /var/run/dropbear /etc/dropbear/superwise >> /tmp/initramfs.debug 2>&1   
   ln -s /var/log/dropbear /etc/dropbear/log/main >> /tmp/initramfs.debug 2>&1   
   ln -s /var/run/dropbear.log /etc/dropbear/log/superwise >> /tmp/initramfs.debug 2>&1   
   dropbear -p 22 -E -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_rsa_host_key 2> /tmp/sshd.log
 log_end_msg $?

 rm -f /dev/random
 mv /dev/random.old /dev/random


else
 _log "INITTCOS not starting dropbear ssh server"
fi


if [ "$(which inetd)" ] && [ -e /etc/inetd.conf ] ; then
 _log "INITTCOS starting inetd daemon"
 log_begin_msg "Starting inetd"
   inetd
 log_end_msg $?
else
 _log "INITTCOS not starting inetd"
fi

exit 0