/etc/tcos/pxelinux.d/example.dual.server.hook 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 | # don't start with /bin/sh
#
# This example generate needed default pxelinux.cfg/XXXXXXXX
# to force boot for alternate server
# * 10.0.0.1 is master server 10.0.0.101 => 10.0.0.130
# * 10.0.0.2 is slave 10.0.0.131 => 10.0.0.161
#
#
# Place files in /etc/tcos/pxelinux.d/filename.hook
#CONF=/var/lib/tcos/tftp/pxelinux.cfg/
#
#IPBASE=10.0.0
#
#FROM=131
#TO=161
#
#for _ip in $(seq $FROM $TO); do
#
# IP=${IPBASE}.${_ip}
# HEXIP=$(gethostip $IP| awk '{print $NF}')
# cat $CONF/default | sed -e 's/quiet/quiet xserver=10.0.0.2 fontserver=10.0.0.2/g' > $CONF/$HEXIP
#
#done
# don't return values
# don't end with exit
# only do the things you want
|