2004-02-16 10:41:00 +01:00
|
|
|
#! @bash@/bin/sh -e
|
|
|
|
|
2004-07-16 17:41:47 +02:00
|
|
|
set -e
|
|
|
|
|
2004-02-19 13:49:00 +01:00
|
|
|
. @out@/bin/env.sh
|
2004-02-16 10:41:00 +01:00
|
|
|
|
|
|
|
echo "--- Nix ---"
|
|
|
|
|
2004-02-18 11:56:07 +01:00
|
|
|
echo "mounting /proc..."
|
|
|
|
mount -n -t proc none /proc
|
|
|
|
|
2005-08-19 00:55:27 +02:00
|
|
|
echo "mounting /sys..."
|
|
|
|
mount -n -t sysfs none /sys
|
|
|
|
|
2005-08-17 21:19:54 +02:00
|
|
|
#echo "checking /dev/root..."
|
|
|
|
#e2fsck -y /dev/root || test "$?" -le 1
|
2004-02-18 11:56:07 +01: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 10:41:00 +01:00
|
|
|
|
2004-02-19 13:49:00 +01:00
|
|
|
echo "setting up hostname..."
|
|
|
|
hostname uml
|
|
|
|
|
|
|
|
echo "enabling loopback interface..."
|
|
|
|
ifconfig lo 127.0.0.1
|
|
|
|
|
|
|
|
echo "enabling ethernet interface..."
|
2004-07-16 17:41:47 +02:00
|
|
|
ifconfig eth0 $(cat /etc/networking/local-ip) up || true
|
2004-02-19 13:49:00 +01:00
|
|
|
|
|
|
|
echo "setting up routing table..."
|
2004-07-16 17:41:47 +02:00
|
|
|
route add default gw $(cat /etc/networking/gateway-ip) || true
|
2004-02-19 13:49:00 +01:00
|
|
|
|
2004-02-18 15:56:32 +01:00
|
|
|
echo "boot done."
|