3
0
Fork 0
forked from mirrors/nixpkgs

* Ignore failure to set up networking.

* Unmount, don't remount / on halt.

svn path=/nixu/trunk/; revision=1169
This commit is contained in:
Eelco Dolstra 2004-07-16 15:41:47 +00:00
parent 91a5fe9eb0
commit 656ea85e60
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,7 @@
#! @bash@/bin/sh -e
set -e
. @out@/bin/env.sh
echo "--- Nix ---"
@ -23,9 +25,9 @@ echo "enabling loopback interface..."
ifconfig lo 127.0.0.1
echo "enabling ethernet interface..."
ifconfig eth0 $(cat /etc/networking/local-ip) up
ifconfig eth0 $(cat /etc/networking/local-ip) up || true
echo "setting up routing table..."
route add default gw $(cat /etc/networking/gateway-ip)
route add default gw $(cat /etc/networking/gateway-ip) || true
echo "boot done."

View file

@ -2,8 +2,8 @@
. @out@/bin/env.sh
echo "remounting / read-only..."
mount -n -o remount,rw /dev/root / || echo "(failed)" # ignore errors
echo "unmount file systems..."
umount -avt noproc,nonfs,nosmbfs,nodevfs || echo "(failed)" # ignore errors
echo "syncing..."
sync || echo "(failed)" # ignore errors