view sources/native/setup.sh @ 275:29372ecebca8

Added tag 0.3.1 for changeset 3ca6f52688ac
author Rob Landley <rob@landley.net>
date Tue, 29 Jan 2008 08:21:54 -0600
parents c95713e54437
children 2eb466ea972b
line wrap: on
line source

#!/tools/bin/bash

# This builds 

# Create some temporary directories at the root level
mkdir -p /{proc,sys,etc}
[ ! -e /bin ] && ln -s /tools/bin /bin
[ ! -e /lib ] && ln -s /tools/lib /lib

# Populate /dev
mount -t sysfs /sys /sys
mount -t tmpfs /dev /dev
mdev -s

# Setup network for QEMU
mount -t proc /proc /proc
echo "nameserver 10.0.2.3" > /etc/resolv.conf
ifconfig eth0 10.0.2.15
route add default gw 10.0.2.2
#rdate time-b.nist.gov

exec /tools/bin/busybox ash

#wget http://landley.net/hg/firmware/archive/tip.tar.gz
#tar xvzf tip.tar.gz
#cd firmware-*
#./build.sh $ARCH