Mercurial > hg > aboriginal
annotate sources/native/setup.sh @ 286:2eb466ea972b
distcc needs /tmp
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 31 Jan 2008 03:59:10 -0600 |
parents | c95713e54437 |
children | eb2aa88277e2 |
rev | line source |
---|---|
190
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/tools/bin/bash |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # This builds |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # Create some temporary directories at the root level |
286 | 6 mkdir -p /{proc,sys,etc,tmp} |
249
c95713e54437
Another tweak to qemu-setup.sh
Rob Landley <rob@landley.net>
parents:
190
diff
changeset
|
7 [ ! -e /bin ] && ln -s /tools/bin /bin |
c95713e54437
Another tweak to qemu-setup.sh
Rob Landley <rob@landley.net>
parents:
190
diff
changeset
|
8 [ ! -e /lib ] && ln -s /tools/lib /lib |
190
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 # Populate /dev |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 mount -t sysfs /sys /sys |
249
c95713e54437
Another tweak to qemu-setup.sh
Rob Landley <rob@landley.net>
parents:
190
diff
changeset
|
12 mount -t tmpfs /dev /dev |
190
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 mdev -s |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 # Setup network for QEMU |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 mount -t proc /proc /proc |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 echo "nameserver 10.0.2.3" > /etc/resolv.conf |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 ifconfig eth0 10.0.2.15 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 route add default gw 10.0.2.2 |
249
c95713e54437
Another tweak to qemu-setup.sh
Rob Landley <rob@landley.net>
parents:
190
diff
changeset
|
20 #rdate time-b.nist.gov |
190
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 exec /tools/bin/busybox ash |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 #wget http://landley.net/hg/firmware/archive/tip.tar.gz |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 #tar xvzf tip.tar.gz |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 #cd firmware-* |
12b7ecb79ad0
A little init script for mini-native.sh that gets it read to build stuff.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 #./build.sh $ARCH |