Creating the rcS script

The second main bootscript is the rcS script. Create a new file /etc/init.d/rcS containing the following:



cat > rcS << "EOF"
#!/bin/sh
# Begin /etc/init.d/rcS

runlevel=S
prevlevel=N
umask 022
export runlevel prevlevel

trap ":" INT QUIT TSTP

for i in /etc/rcS.d/S??*
do
        [ ! -f  "$i" ] && continue;
                $i start
done

# End /etc/init.d/rcS
EOF