Mercurial > hg > aboriginal
comparison sources/native/sbin/init.sh @ 741:1b6acc6cf349
We already added an /etc/resolv.conf with the qemu default value, so don't have init.sh overwrite it (which outputs an error message on read only filesystems).
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 31 May 2009 02:35:41 -0500 |
parents | 78cbd428d60e |
children | db06a8c1bfed |
comparison
equal
deleted
inserted
replaced
740:5b063eb13fd0 | 741:1b6acc6cf349 |
---|---|
35 then | 35 then |
36 | 36 |
37 # Note that 10.0.2.2 forwards to 127.0.0.1 on the host. | 37 # Note that 10.0.2.2 forwards to 127.0.0.1 on the host. |
38 | 38 |
39 # Setup networking for QEMU (needs /proc) | 39 # Setup networking for QEMU (needs /proc) |
40 echo "nameserver 10.0.2.3" > /etc/resolv.conf 2>/dev/null | |
41 ifconfig eth0 10.0.2.15 | 40 ifconfig eth0 10.0.2.15 |
42 route add default gw 10.0.2.2 | 41 route add default gw 10.0.2.2 |
43 | 42 |
44 # If we have no RTC, try rdate instead: | 43 # If we have no RTC, try rdate instead: |
45 [ `date +%s` -lt 1000 ] && rdate 10.0.2.2 # or time-b.nist.gov | 44 [ `date +%s` -lt 1000 ] && rdate 10.0.2.2 # or time-b.nist.gov |