#!/bin/rc rfork ne if(! ~ $#winid 0){ if(test -f /mnt/acme/$winid/ctl) echo name /debian/ > /mnt/acme/$winid/ctl } if not label debian r=/tmp/debian for(d in dev proc net env home tmp var/tmp){ if(! test -d $r/$d){ aux/stub -d $r/$d } } aux/stub /dev/tty bind /dev/cons /dev/tty # not very random aux/stub /dev/srandom bind /dev/zero /dev/srandom aux/stub /dev/urandom bind /dev/zero /dev/urandom bind /root $r/plan9 bind /dev $r/dev bind /proc $r/proc bind /net $r/net bind -c /env $r/env bind -c /usr $r/home bind -c /tmp $r/tmp bind -c /tmp $r/var/tmp aux/stub $r/linuxemu bind /386/bin/linuxemu $r/linuxemu bind /n/null $r/lib/tls bind $r/usr/X11R6/bin $r/usr/bin/X11 HOME=/root HOSTNAME=$sysname HISTFILE=/dev/null DISPLAY=:0 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin: bind $r / exec /linuxemu -u 1 -g 1 /bin/bash