home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / kernels / master / etc / rc < prev    next >
Encoding:
Text File  |  1993-11-02  |  491 b   |  22 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.