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-22 16:23:01 +02:00
|
|
|
echo "mounting /dev/pts..."
|
|
|
|
mount -n -t devpts none /dev/pts
|
|
|
|
|
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 /
|
|
|
|
|
2005-08-19 18:09:31 +02:00
|
|
|
echo "starting udev..."
|
|
|
|
@udev@/sbin/udevstart
|
2004-02-16 10:41:00 +01:00
|
|
|
|
2004-02-19 13:49:00 +01:00
|
|
|
echo "setting up hostname..."
|
2006-01-12 14:51:43 +01:00
|
|
|
hostname nixos
|
2004-02-19 13:49:00 +01:00
|
|
|
|
2006-01-20 14:47:01 +01:00
|
|
|
echo "cleaning utmp and wtmp..."
|
|
|
|
echo "" > /var/run/utmp
|
|
|
|
echo "" > /var/log/wtmp
|
|
|
|
|
2006-01-31 12:01:28 +01:00
|
|
|
echo "loading USB controller modules..."
|
|
|
|
@module_init_tools@/sbin/modprobe uhci-hcd
|
|
|
|
|
2004-02-19 13:49:00 +01:00
|
|
|
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."
|