archboot/usr/lib/initcpio/install/arch_ftp_install

39 lines
943 B
Text
Raw Normal View History

2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2007-02-22 23:46:50 +01:00
{
2008-10-20 22:39:25 +02:00
### check for root
if ! [ $UID -eq 0 ]; then
echo "ERROR: Please run as root user!"
exit 1
fi
### check for TEMPDIR
if [ $TEMPDIR = "" ]; then
echo "ERROR: No TEMPDIR was set, please set TEMPDIR first!"
exit 1
fi
2007-02-22 23:46:50 +01:00
### check for activated testing repository
if ! [ "$(grep '^\[testing\]' /etc/pacman.conf)" = "" ]; then
echo "WARNING: TESTING REPOSITORY ACTIVATED"
echo "-------------------------------------"
echo "POSSIBILITY OF BROKEN BINARY PACKAGES ON INSTALL MEDIA!"
echo "Use a chroot instead to avoid those problems."
echo "5 seconds time to cancel with CTRL+C"
sleep 5
fi
2008-10-20 22:39:25 +02:00
2007-02-22 23:46:50 +01:00
SCRIPT=
BINARIES=
# generate iso title name
2008-12-06 19:12:19 +01:00
[ "${RUNPROGRAM}" = "mkisolinux" ] && echo "Arch_Linux_FTP $(uname -m)" >> ${ISONAME}
2007-02-22 23:46:50 +01:00
}
help ()
{
cat <<HELPEOF
This hook sets up all you need for a arch ftp install image.
HELPEOF
}