Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/fossil/buildsh

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


#!/bin/rc

rfork en
9fs ehime

# adapted from /lib/namespace

root = /n/ehime/testplan9
#root = /n/emelieother/seanq/testplan9
echo setting up $root
fn bind{
	/$cputype/bin/bind $*
}

# pass terminal through
bind /mnt/term $root/mnt/term
# root
bind  $root /
bind -b '#/' /

# kernel devices
bind '#c' /dev
bind '#d' /fd
bind -c '#e' /env
bind '#p' /proc
bind -c '#s' /srv
bind -a /mnt/term/dev/ /dev/
bind /mnt/term/dev/draw /dev/draw

# standard bin
bind /$cputype/bin /bin
bind -a /rc/bin /bin

# ramfs
cd /sys/src
prompt=('test-ehime=; ' '	')
fn cd
rc -i



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.