This file is indexed.

/usr/share/tcos/hooks-addons/01dhclient 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
# hook addon DHCLIENT
# necessary busybox package


# some network stuff
touch $DESTDIR/etc/hosts.allow
touch $DESTDIR/etc/hosts.deny
cpifexists /etc/host.conf        /etc/
sed '/hosts:/ chosts:          files dns' /etc/nsswitch.conf > $DESTDIR/etc/nsswitch.conf

# put DNS server
dns1=$(grep ^nameserver /etc/resolv.conf 2>/dev/null | grep -v "127.0.0.1" | head -1 | awk '{print $2}')
echo "TCOS_DNS_SERVER=${dns1}" >> ${DESTDIR}/conf/tcos.conf

BUSYBOX=/bin/busybox
[ -e ${DESTDIR}/bin/busybox ] && BUSYBOX=${DESTDIR}/bin/busybox

cpifexists ${TCOS_BINS}/udhcpc-script  /bin/

check=$(${BUSYBOX} udhcpc -O 290 2>&1| grep -c swapsrv)
if [ -e ${TCOS_BINS}/busybox ] || [ "${check}" != "0" ]; then
  echo " * busybox udhcpc support 'swapsrv' option" >/dev/null

else
 echo "ERROR"
 echo ""
 echo "NO UDHCP support, please install a recent busybox/udhcpc (>= 1:1.13.3) package."
 echo ""
fi