diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
commit | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch) | |
tree | d8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/fossil/buildsh |
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/fossil/buildsh')
-rwxr-xr-x | sys/src/cmd/fossil/buildsh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sys/src/cmd/fossil/buildsh b/sys/src/cmd/fossil/buildsh new file mode 100755 index 000000000..56c3eadc9 --- /dev/null +++ b/sys/src/cmd/fossil/buildsh @@ -0,0 +1,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 + + |