This commit is contained in:
Trammell hudson 2018-02-26 13:15:34 -05:00
commit e4106c6969
No known key found for this signature in database
GPG Key ID: 687A5005935B1533

View File

@ -29,15 +29,18 @@ fi
# bring up the ethernet; maybe should do DHCP?
ifconfig lo 127.0.0.1
insmod /lib/modules/e1000.ko
ifconfig eth0 10.0.2.15 # qemu
ifconfig eth0 > /dev/ttyprintk
if [ -f /lib/modules/e1000.ko ]; then
insmod /lib/modules/e1000.ko
ifconfig eth0 10.0.2.15 # qemu
ifconfig eth0 > /dev/ttyprintk
# Setup the ssh server, allow root logins and log to stderr
if [ ! -d /etc/dropbear ]; then
mkdir /etc/dropbear
if [ ! -d /etc/dropbear ]; then
mkdir /etc/dropbear
fi
dropbear -B -R 2>/dev/ttyprintk
ifconfig eth0 | head -1 > /dev/tty0
fi
dropbear -B -R 2>/dev/ttyprintk
# Recovery shells will erase anything from here
mkdir -p /tmp/secret
@ -48,11 +51,6 @@ if [ -r /etc/motd ]; then
cat /etc/motd > /dev/tty0
fi
ifconfig eth0 | head -1 > /dev/tty0
# For now we just start a shell
exec /bin/ash
# Load the date from the hardware clock, setting it in local time
hwclock -l -s