This file is indexed.

/usr/share/tcos/scripts/tcos-premount/40tftp 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/sh
# 
if [ "$1" = "prereqs" ]; then
  exit 0
fi


. /scripts/functions
# if break=tftp STOP here
maybe_break tftp


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



if [ -e /usr/bin/Xorg ]; then
  # we have a mounted /usr with other method
  exit 0
fi




###############################################
if [ ! -e /mnt/tmp/usr-$(uname -r).squashfs ] && [ ! -e /mnt/tmp/usr.squashfs ]; then
  # download usr.squashfs from tftp server

  log_begin_msg "Downloading usr.squashfs from $(read_server "tftp-server")"
    _log "SQMOUNT downloading squashfs"
    value=0
    download_file /tcos/usr-$(uname -r).squashfs /mnt/tmp/usr-$(uname -r).squashfs || value=1
    #sync
    #sleep 1
  log_end_msg $value


  if [ "$(if_is_zero /mnt/tmp/usr-$(uname -r).squashfs)" = "0" ]; then
    panic "Error downloading extra data from server $(read_server "tftp-server")"
  fi
#else
#  log_begin_msg "usr-$(uname -r).squashfs not downloaded"
#    sync
#  log_end_msg $?
fi

##############################################


# DOCUMENTME allmodules | download with tftp allmodules.squashfs to test what modules need thin client
TCOS_ALL_MODULES_CMD=$(read_cmdline_var "allmodules" "0")

if [ "$TCOS_ALL_MODULES_CMD" = "1" ] || [ ! -z $TCOS_ALL_MODULES_DOWNLOAD ]; then

  if [ ! -e /mnt/tmp/allmodules-$(uname -r).squashfs ] && [ ! -e /mnt/tmp/allmodules.squashfs ]; then

    _log "SQMOUNT Downloading allmodules-$(uname -r).squashfs"
    log_begin_msg "Downloading all kernel modules: allmodules-$(uname -r).squashfs"
    download_file /tcos/allmodules-$(uname -r).squashfs /mnt/tmp/allmodules-$(uname -r).squashfs
    sync
    if [ "$(if_is_zero /mnt/tmp/allmodules-$(uname -r).squashfs)" = "0" ]; then
       echo "Error downloading allmodules"
       log_end_msg 1
       exit 0
    fi
    log_end_msg 0
  fi
  
fi


exit 0