# rcS - runlevel compatibility # # This task runs the old sysv-rc startup scripts. start on stopped udevstart #stop on runlevel # Note: there can be no previous runlevel here, if we have one it's bad # information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc # without information so that it defaults to previous=N runlevel=S. console output script source /etc/init.d/functions echo -n "Changing state of rootfs to rw" /bin/mount -n -o remount,rw / evaluate_retval echo >/dev/mtab /bin/mount -f -o remount,rw / for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do MOUNTPOINT=$i DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab` if [ "$DEVICE" == "none" ]; then echo -n "Mounting $MOUNTPOINT" mount $MOUNTPOINT evaluate_retval fi done end script