changeset 190:12b7ecb79ad0

A little init script for mini-native.sh that gets it read to build stuff.
author Rob Landley <rob@landley.net>
date Thu, 05 Jul 2007 00:21:42 -0400
parents 63882e3acf43
children 485dabec83c4
files sources/native/setup.sh
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/native/setup.sh	Thu Jul 05 00:21:42 2007 -0400
@@ -0,0 +1,26 @@
+#!/tools/bin/bash
+
+# This builds 
+
+# Create some temporary directories at the root level
+mkdir -p /{proc,sys,etc}
+ln -s /tools/bin /bin
+ln -s /tools/lib /lib
+
+# Populate /dev
+mount -t sysfs /sys /sys
+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