home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- mount -n -o remount,rw /
- mount /proc
- cp /proc/mounts /etc/mtab
-
- open -l /bin/sh
-
- echo ''
- echo 'This is the Red Hat rescue disk. Most of the basic system commands are'
- echo 'in /bin.'
- echo ''
- echo 'Type exit to halt the system.'
- echo ''
-
- /bin/sh
-
- echo "Unmounting filesystems..."
- tac /proc/mounts | while read line ; do
- set
- if [ != "/" ]; then
- umount
- fi
- done
- echo "Halting system.. All fixed? :-)"
-