/usr/share/tcos/hooks-addons/14ssh 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 32 33 34 35 | # hooks addon to have a SSH daemon in terminal
# need dropbear SSH package
if [ ! $TCOS_SSH ] ;then
_verbose "(14ssh) TCOS_SSH disabled"
else
stat_before
if [ ! -d /usr/share/doc/dropbear ]; then
echo "WARNING"
echo ""
echo "Please install dropbear package or disable SSH support."
echo " => apt-get install dropbear"
echo ""
else
mkdir -p $DESTDIR/etc
mkdir -p $DESTDIR/usr/lib/dropbear
mkdir -p $DESTDIR/var/log/dropbear
mkdir -p $DESTDIR/var/run/dropbear
copydir /etc/dropbear/ /etc/
rm -f $DESTDIR/etc/dropbear/supervise
rm -f $DESTDIR/etc/dropbear/log/supervise
rm -f $DESTDIR/etc/dropbear/log/main
cpifexists /usr/sbin/dropbear /usr/bin/ # ssh server
cpifexists /usr/bin/dbclient /usr/bin/ # ssh client ( no have ssh -X support )
cpifexists /usr/lib/dropbear/dropbearconvert /usr/lib/dropbear/
fi
stat_after "Dropbear ssh server"
fi # end of TCOS_SSH
|