#!	/bin/sh
#set -x 
root_device=`block_device /`
echo "Root is mounted from $root_device"
# mount writable
mount -t minix -n -o remount $root_device /
# write new mtab
echo -n > /etc/mtab
mount -t minix -o remount $root_device /
# Make sure there are no old entries in /etc/fstab to confuse the installer.
echo "$root_device / minix rw 0 1" >/etc/fstab
# already mounted by init; write mtab entry
mount -o remount -t proc proc /proc
update
cat /proc/kmsg >/dev/tty4 &
echo "/etc/rc done."
exit 0
