#!/bin/sh
# remove /etc/mtab* so mount creates the /etc/mtab file
/bin/rm -f /etc/mtab* /etc/nologin /etc/utmp
echo -n "" >> /etc/utmp

# You may wish to clip this one down as well
#/bin/mv -f /etc/wtmp /etc/wtmp.old
#touch /etc/wtmp
echo -n "" >> /etc/utmp

# should check fs before mounting
#e2fsck -av /dev/sda2

/bin/mount -av -t nonfs
/bin/swapon -a

/bin/rm -f /usr/spool/uucp/LCK*
/bin/rm -f /auto/run/*

/bin/sh /etc/rc.local
/bin/mount /proc /proc -t proc 1> /dev/null 2> /dev/null

echo > /etc/motd
echo "`/bin/uname -a | /bin/cut -d\  -f1,3`. (Posix)." >> /etc/motd
echo >> /etc/motd
echo "If you're upgrading an existing Slackware system, you might want to" >> /etc/motd
echo "remove old packages before you run 'setup' to install the new ones. If" >> /etc/motd
echo "you don't, your system will still work but there might be some old files" >> /etc/motd
echo "left laying around on your drive." >> /etc/motd
echo >> /etc/motd
echo "Just mount your Linux partitions under /mnt and type 'pkgtool'. If you" >> /etc/motd
echo "don't know how to mount your partitions, type 'pkgtool' and it will tell" >> /etc/motd
echo "you how it's done." >> /etc/motd
echo >> /etc/motd
echo "To start the main installation, type 'setup'." >> /etc/motd
echo >> /etc/motd
