# HG changeset patch # User Rob Landley # Date 1203649861 21600 # Node ID eb2aa88277e2eb8e2a1aa1bb67392d8f80cb60e6 # Parent 309b574a5059c3771835333b583cd62359c66304 If a second block device exists, mount it on /home. diff -r 309b574a5059 -r eb2aa88277e2 sources/native/setup.sh --- a/sources/native/setup.sh Thu Feb 21 04:47:54 2008 -0600 +++ b/sources/native/setup.sh Thu Feb 21 21:11:01 2008 -0600 @@ -17,8 +17,21 @@ echo "nameserver 10.0.2.3" > /etc/resolv.conf ifconfig eth0 10.0.2.15 route add default gw 10.0.2.2 + +# If we have no local clock, you can do this instead: #rdate time-b.nist.gov +# If there's a /dev/hdb or /dev/sdb, mount it on home + +[ -b /dev/hdb ] && HOMEDEV=/dev/hdb +[ -b /dev/sdb ] && HOMEDEV=/dev/hdb +if [ ! -z "$HOMEDEV" ] +then + mkdir -p /home + mount $HOMEDEV /home + export HOME=/home +fi + exec /tools/bin/busybox ash #wget http://landley.net/hg/firmware/archive/tip.tar.gz