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
|
|
|
|
|
2005-08-18 22:55:27 +00:00
|
|
|
echo "mounting /sys..."
|
|
|
|
mount -n -t sysfs none /sys
|
|
|
|
|
2005-08-17 19:19:54 +00:00
|
|
|
#echo "checking /dev/root..."
|
|
|
|
#e2fsck -y /dev/root || test "$?" -le 1
|
2004-02-18 10:56:07 +00:00
|
|
|
|
|
|
|
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."
|