#
# IPFire Installer RC
#

echo >/proc/sys/kernel/printk "1 4 1 7"
echo -n -e "\033[9;0]"

ln -snf /proc/self/fd/0 /dev/stdin
ln -snf /proc/self/fd/1 /dev/stdout
ln -snf /proc/self/fd/2 /dev/stderr
ln -s /proc/kcore /dev/core
mount tmpfs -t tmpfs /tmp

echo "Starting shells on tty2 and tty3 ..."
/usr/local/bin/iowrap /dev/tty2 /bin/bash &
/usr/local/bin/iowrap /dev/tty3 /bin/bash &

echo "Loading Installer..."
/bin/bash --login -c "/bin/install /dev/tty2"

/etc/halt
