# hooks addon TCOS hdd installer # need whiptail, syslinux # needed for swap creation cpifexists /sbin/mkswap /sbin/ # fdisk for fstab generation cpifexists /sbin/fdisk /sbin/ # disktype detection (for fstab too) [ -x /usr/bin/disktype ] && cpifexists /usr/bin/disktype /usr/bin/ if [ ! $TCOS_INSTALLER ]; then _verbose "(18_tcos_hdd_installer) TCOS_INSTALLER disabled" else cpifexists /usr/bin/whiptail /usr/bin cpifexists /usr/bin/syslinux /usr/bin cpifexists /usr/bin/mcopy /usr/bin cpifexists /usr/bin/mattrib /usr/bin cpifexists /sbin/install-mbr /sbin cpifexists /sbin/mkfs.vfat /usr/bin mkdir -p $DESTDIR/usr/lib/syslinux/ [ -f /usr/lib/syslinux/mbr.bin ] && cp /usr/lib/syslinux/mbr.bin $DESTDIR/usr/lib/syslinux/ [ -f /usr/lib/syslinux/ldlinux.sys ] && cp /usr/lib/syslinux/ldlinux.sys $DESTDIR/usr/lib/syslinux/ install -m 755 ${TCOS_BINS}/installer.sh ${DESTDIR}/sbin/installer.sh fi # end of TCOS_INSTALLER