home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 August / PCWorld_1999-08_cd.bin / images / rescue.img / rescue / bin / init < prev    next >
Text File  |  1999-04-19  |  424b  |  26 lines

  1. #!/bin/sh
  2.  
  3. mount -n -o remount,rw /
  4. mount /proc
  5. cp /proc/mounts /etc/mtab
  6.  
  7. open -l /bin/sh
  8.  
  9. echo ''
  10. echo 'This is the Red Hat rescue disk. Most of the basic system commands are'
  11. echo 'in /bin.'
  12. echo ''
  13. echo 'Type exit to halt the system.'
  14. echo ''
  15.  
  16. /bin/sh
  17.  
  18. echo "Unmounting filesystems..."
  19. tac /proc/mounts | while read line ; do
  20.     set 
  21.     if [  != "/" ]; then
  22.     umount 
  23.     fi
  24. done
  25. echo "Halting system.. All fixed? :-)"
  26.