blob: 56c3eadc90f15684c42fc34494457e31d65e28b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/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
|