22 lines
423 B
Plaintext
22 lines
423 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Mount the Linux kernel virtual filesystems
|
||
|
mount none -t proc /proc
|
||
|
mount none -t sysfs /sys
|
||
|
mkdir /dev/pts
|
||
|
mount none -t devpts /dev/pts
|
||
|
|
||
|
ifup lo
|
||
|
|
||
|
# Allow for distro or local customizations
|
||
|
if [ -f /etc/rc.local ] ; then
|
||
|
source /etc/rc.local
|
||
|
fi
|
||
|
|
||
|
# Become session leader and try to find a real tty (e.g. ttyS0)
|
||
|
while true; do
|
||
|
setsid cttyhack sh
|
||
|
echo "Console sh exited with $?, respawning..."
|
||
|
sleep 1
|
||
|
done
|