#!/bin/sh #dir="/usr/obj/nanobsd.mips-devel/_.w" dir="/usr/obj/nanobsd.mips/_.w" do_mount() { eval last=\$$# if mount | awk '$3 == "'$last'" { exit 1 } END {exit 0}'; then mount "$@" fi } do_mount -t devfs devfs $dir/dev do_mount -t nullfs /home/ports $dir/usr/ports do_mount -t nullfs /home/src $dir/usr/src idprio 5 chroot $dir /usr/local/bin/qemu-mips-static /bin/sh