Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/rc/debian

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.