#!/bin/bash # SYN-3 live cd installer script # # # Put any local setup commands in here: echo 0 0 0 0 > /proc/sys/kernel/printk export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11/bin export PS1='\$ ' mkdir initrd proc tmp sys >/dev/null 2>&1 chmod 1777 tmp mount -t proc proc /proc mount -t sysfs sysfs /sys splashstep #Remote access instellen? (Voor regressie tests) if [ -e /etc/remote.conf ]; then source /etc/remote.conf ifconfig eth0 $IP /etc/rc.d/rc.sshd start fi #textmode install if grep text /proc/cmdline &>/dev/null; then chvt 1 splashstep "Starting textmode installer" cd /mnt/cdrom/installer ./install.sh >/dev/null #grapical installer proberen else export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11R6/bin splashstep "Starting graphic installer" cd /mnt/cdrom/installer xinit /usr/bin/blackbox -rc /var/blackboxrc #install mislukt? if ! [ -e /INSTALLOK ]; then #komt door xserver probleem? if grep 'Fatal server error:' /var/log/Xorg.0.log >/dev/null; then #terugvallen op text splasherror "Graphic installer failed, falling back to textmode!" splashmode verbose cd /mnt/cdrom/installer ./install.sh >/dev/null fi fi splashmode silent fi sync #Remote access weer uitschakellen if [ -e /etc/remote.conf ]; then ifconfig eth0 0.0.0.0 killall -9 sshd fi umount /proc umount /sys exit 0