3 # hdw - linux /etc/init.d/boot (copied from ROCK Linux + modifications)
5 # modified for fai routine
10 export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/fai/scripts
12 echo "** booting hdw-linux FAI routine ... **"
15 mount -v -n /proc ; mount -v -n /sys
16 mkdir -p /dev/shm ; mount -v -n /dev/shm
17 mkdir -p /dev/pts ; mount -v -n /dev/pts
19 echo "loading kernel modules and configuring the kernel ..."
22 echo "populating device nodes ..."
23 /etc/init.d/udev start
25 if [ -f /etc/conf/devfs ] ; then
26 echo "configuring device nodes ..."
30 echo "activating swap-devices ..."
33 mount -v -n -o remount,rw /
34 mount -v -a -t nocoda,nfs
36 if type hostname > /dev/null 2>&1
38 echo "set the hostname to [`cat /etc/HOSTNAME`] ..."
39 hostname `cat /etc/HOSTNAME`
41 echo "hostname not set: no 'hostname' command found"
44 if type loadkeys > /dev/null 2>&1
46 echo "set the keyboard keymappings ..."
47 if [ -L /etc/default.keymap ] ; then
48 oldpwd="`pwd`" ; cd /etc
49 loadkeys `ls -l default.keymap | tr -s ' ' | cut -f11 -d' '`
50 cd "$oldpwd" ; unset oldpwd
51 elif [ -f /etc/default.keymap ] ; then
52 loadkeys /etc/default.keymap
54 echo "no /etc/default.keymap found."
57 echo "keymappings not configured: no 'loadkeys' command found."
60 if type ifconfig > /dev/null 2>&1
62 echo "setting up loopback networking ..."
63 ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
64 route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
67 echo 'setting overflow UID and GID kernel parameters ...'
68 sysctl -w kernel.overflowuid=`id -u nobody` | tr -d '\n'
69 echo -n ', ' ; sysctl -w kernel.overflowgid=`id -g nobody`
71 echo "initializing kernel random number generator ..."
72 [ -f /var/state/random-seed ] && cat /var/state/random-seed >/dev/urandom
76 echo "start of FAI (fully automated installation) process, good luck ..."
79 echo -en "starting portmap ..."