home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / ROOTDSKS.12 / TTY12 / etc / rc < prev    next >
Encoding:
Text File  |  1994-05-19  |  1.2 KB  |  37 lines

  1. #!/bin/sh
  2. # remove /etc/mtab* so mount creates the /etc/mtab file
  3. /bin/rm -f /etc/mtab* /etc/nologin /etc/utmp
  4. echo -n "" >> /etc/utmp
  5.  
  6. # You may wish to clip this one down as well
  7. #/bin/mv -f /etc/wtmp /etc/wtmp.old
  8. #touch /etc/wtmp
  9. echo -n "" >> /etc/utmp
  10.  
  11. # should check fs before mounting
  12. #e2fsck -av /dev/sda2
  13.  
  14. /bin/mount -av -t nonfs
  15. /bin/swapon -a
  16.  
  17. /bin/rm -f /usr/spool/uucp/LCK*
  18. /bin/rm -f /auto/run/*
  19.  
  20. /bin/sh /etc/rc.local
  21. /bin/mount /proc /proc -t proc 1> /dev/null 2> /dev/null
  22.  
  23. echo > /etc/motd
  24. echo "`/bin/uname -a | /bin/cut -d\  -f1,3`. (Posix)." >> /etc/motd
  25. echo >> /etc/motd
  26. echo "If you're upgrading an existing Slackware system, you might want to" >> /etc/motd
  27. echo "remove old packages before you run 'setup' to install the new ones. If" >> /etc/motd
  28. echo "you don't, your system will still work but there might be some old files" >> /etc/motd
  29. echo "left laying around on your drive." >> /etc/motd
  30. echo >> /etc/motd
  31. echo "Just mount your Linux partitions under /mnt and type 'pkgtool'. If you" >> /etc/motd
  32. echo "don't know how to mount your partitions, type 'pkgtool' and it will tell" >> /etc/motd
  33. echo "you how it's done." >> /etc/motd
  34. echo >> /etc/motd
  35. echo "To start the main installation, type 'setup'." >> /etc/motd
  36. echo >> /etc/motd
  37.