#!/bin/bash

echo
echo "Entering rescue mode..."
echo "The computer will be rebooted when you leave rescue mode..."
echo

need -r         # Complete rollback

kill -TSTP 1    # Don't allow new ttys
kill -TERM 1    # Kill all existing ttys
  
sulogin       	# Allow the user to log in. This is not the perfect way to do
		# this since the script never exits and thus will not be
		# registered by simpleinit.
halt
