summaryrefslogtreecommitdiff
path: root/sys/src/cmd/fossil/buildsh
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
commite5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch)
treed8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/fossil/buildsh
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/fossil/buildsh')
-rwxr-xr-xsys/src/cmd/fossil/buildsh40
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
+
+