xref: /plan9/sys/src/cmd/fossil/buildsh (revision 5e96a66c77eb9140492ca53f857cbbf108e128ed)
1#!/bin/rc
2
3rfork en
49fs ehime
5
6# adapted from /lib/namespace
7
8root = /n/ehime/testplan9
9#root = /n/emelieother/seanq/testplan9
10echo setting up $root
11fn bind{
12	/$cputype/bin/bind $*
13}
14
15# pass terminal through
16bind /mnt/term $root/mnt/term
17# root
18bind  $root /
19bind -b '#/' /
20
21# kernel devices
22bind '#c' /dev
23bind '#d' /fd
24bind -c '#e' /env
25bind '#p' /proc
26bind -c '#s' /srv
27bind -a /mnt/term/dev/ /dev/
28bind /mnt/term/dev/draw /dev/draw
29
30# standard bin
31bind /$cputype/bin /bin
32bind -a /rc/bin /bin
33
34# ramfs
35cd /sys/src
36prompt=('test-ehime=; ' '	')
37fn cd
38rc -i
39
40
41