#! /sbin/runset

# This is the main singleuser runset script.

PATH=/bin:/sbin

# We helpfully mount /proc first
filesystem proc /proc

# This executes a shell.
#
# 'ctty=1' is an important bit of magic.  The shell will work without it,
# but Ctrl-C won't work.  So if you manually turn on the network and then
# ping something, you're trapped in an endless loop.
#
# An unfortunate side effect is that once ctty=1 has been used, the system
# console will be "hung up" and no other program using the stdin/stdout
# inherited from init and runset will be able to use the console.  The
# 'init' daemon supplied with runset goes to some lengths to reset things
# so you don't have to worry about this across singleuser/multiuser mode
# switches.
ctty=1 wait /bin/bash
