#!/bin/sh # # ROOT Installation CD-ROM # /etc/rc: bootup script # Copyright (C) 1999-2005 John Eriksson # # Print a small welcome message echo "ROOT Linux Installation CDROM `cat /VERSION`" # Abort if missing important files if [ ! -d /rl ]; then echo "Missing directory /rl. Corrupt CD." echo "Installation aborted." sleep 1d fi # Inform about proc mount echo "none on /proc type proc (rw)" # Mount all filesystems (output to /dev/null, proc not yet mounted) /bin/mount -na 2>/dev/null >/dev/null # Start udev /sbin/start_udev # Mount a tmpfs on /tmp /bin/mount -n -t tmpfs tmpfs /tmp # Create important directories /bin/mkdir -p /tmp/var /tmp/mnt /bin/mkdir -p /var/lock /var/log /var/run /var/tmp # Set correct permissions /bin/chmod 0777 /tmp/mnt /bin/chmod 0755 /tmp/var # Touch user record /bin/touch /var/run/utmp # Set hostname to 'setup' /bin/hostname setup # Start the system loggers /sbin/syslogd /sbin/klogd -c 1 # Print a message on debug console echo "/dev/vc/3 - debug messages from the setup program" >/dev/vc/3 # Set screen blank timeout to 60 minutes /bin/setterm -blank 60 # EOF