changeset 425:6a8f6cecce7c

Cleanup after chroot-setup.sh, and set nameserver.
author Rob Landley <rob@landley.net>
date Wed, 29 Oct 2008 17:28:36 -0500
parents e39509d8d925
children f4d6502501d7
files sources/native/bin/qemu-setup.sh
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sources/native/bin/qemu-setup.sh	Tue Oct 28 23:32:03 2008 -0500
+++ b/sources/native/bin/qemu-setup.sh	Wed Oct 29 17:28:36 2008 -0500
@@ -53,10 +53,22 @@
     mount $HOMEDEV /home
     export HOME=/home
   fi
+else
+  echo "nameserver 4.2.2.1" > /etc/resolv.conf
 fi
 
 echo Type exit when done.
 
 # Switch to a shell with command history.
-[ -z "$CONSOLE" ] && exec /tools/bin/ash
-exec /tools/bin/oneit -c /dev/$CONSOLE /tools/bin/ash
+if [ -z "$CONSOLE" ]
+then
+  /tools/bin/ash
+  cd /
+  umount ./dev
+  umount ./home
+  umount ./sys
+  umount ./proc
+  sync
+else
+  exec /tools/bin/oneit -c /dev/$CONSOLE /tools/bin/ash
+fi