2004-02-16 09:41:00 +00:00
|
|
|
#! @bash@/bin/sh -e
|
|
|
|
|
2004-07-16 15:41:47 +00:00
|
|
|
set -e
|
|
|
|
|
2004-02-19 12:49:00 +00:00
|
|
|
. @out@/bin/env.sh
|
2004-02-16 09:41:00 +00:00
|
|
|
|
|
|
|
echo "--- Nix ---"
|
|
|
|
|
2004-02-18 10:56:07 +00:00
|
|
|
echo "mounting /proc..."
|
|
|
|
mount -n -t proc none /proc
|
|
|
|
|
|
|
|
echo "checking /dev/root..."
|
|
|
|
e2fsck -y /dev/root || test "$?" -le 1
|
|
|
|
|
|
|
|
echo "remounting / writable..."
|
|
|
|
mount -n -o remount,rw /dev/root /
|
|
|
|
|
|
|
|
echo "mounting /mnt/host..."
|
|
|
|
mount -n -t hostfs none /mnt/host
|
2004-02-16 09:41:00 +00:00
|
|
|
|
2004-02-19 12:49:00 +00:00
|
|
|
echo "setting up hostname..."
|
|
|
|
hostname uml
|
|
|
|
|
|
|
|
echo "enabling loopback interface..."
|
|
|
|
ifconfig lo 127.0.0.1
|
|
|
|
|
|
|
|
echo "enabling ethernet interface..."
|
2004-07-16 15:41:47 +00:00
|
|
|
ifconfig eth0 $(cat /etc/networking/local-ip) up || true
|
2004-02-19 12:49:00 +00:00
|
|
|
|
|
|
|
echo "setting up routing table..."
|
2004-07-16 15:41:47 +00:00
|
|
|
route add default gw $(cat /etc/networking/gateway-ip) || true
|
2004-02-19 12:49:00 +00:00
|
|
|
|
2004-02-18 14:56:32 +00:00
|
|
|
echo "boot done."
|