# HG changeset patch # User Rob Landley # Date 1276694010 18000 # Node ID 725e41d6637920d9516f763572b9a85090c7d42e # Parent 2b68517f5b621680300b163585e88e29d710c182 Use Google's nameserver, use ntpd to set time for chroot (if necessary), don't umount home if we didn't mount it. diff -r 2b68517f5b62 -r 725e41d66379 sources/native-root/sbin/init.sh --- a/sources/native-root/sbin/init.sh Wed Jun 16 08:11:51 2010 -0500 +++ b/sources/native-root/sbin/init.sh Wed Jun 16 08:13:30 2010 -0500 @@ -80,7 +80,10 @@ # If we're not PID 1, it's probably a chroot. else [ ! -z "$(grep "default for QEMU" /etc/resolv.conf)" ] && - echo "nameserver 4.2.2.1" > /etc/resolv.conf + echo "nameserver 8.8.8.8" > /etc/resolv.conf + + # If we have no RTC, try using ntp to set the clock + [ "$(date +%s)" -lt 10000000 ] && ntpd -nq -p north-america.pool.ntp.org # Switch to a shell with command history. @@ -88,7 +91,6 @@ /bin/ash cd / umount ./dev - umount ./home umount ./sys umount ./proc sync