#!/bin/bash echo " [ SYN-3 live environment ]" #get rid of open initrd descriptors exec > /dev/console exec 2> /dev/console exec < /dev/console #clearup memory used by initrd #NOTE: use the 'pivotimage' initrd-parameter to prepare for this! umount /initrd blockdev --flushbufs /dev/ram0 #prepare environment export PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/X11/bin export PS1='\$ ' mkdir proc tmp sys >/dev/null 2>&1 chmod 1777 tmp mount -t proc proc /proc mount -t devpts devpts /dev/pts mount -t sysfs sysfs /sys echo "Running startup script..." cd /mnt/cdrom bash ./start #cleanup environment umount /proc umount /dev/pts umount /sys #script should never exit #exit 1, causing the initrd to handle this error nicely exit 1