summaryrefslogtreecommitdiff
path: root/usr/glenda/lib/profile
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-04-11 19:47:05 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-04-11 19:47:05 +0000
commit45bab89362ebe122d60d5e9b1e2b949b26168db3 (patch)
treec430eb677a06d8c823fd1d2d4a9f7790c0c275d2 /usr/glenda/lib/profile
parent05569f6f2c54a19c1c85a7f10742913cd8904787 (diff)
downloadplan9front-45bab89362ebe122d60d5e9b1e2b949b26168db3.tar.xz
livecd
Diffstat (limited to 'usr/glenda/lib/profile')
-rw-r--r--usr/glenda/lib/profile36
1 files changed, 36 insertions, 0 deletions
diff --git a/usr/glenda/lib/profile b/usr/glenda/lib/profile
new file mode 100644
index 000000000..fe2728986
--- /dev/null
+++ b/usr/glenda/lib/profile
@@ -0,0 +1,36 @@
+bind -a $home/bin/rc /bin
+bind -a $home/bin/$cputype /bin
+bind -c tmp /tmp
+if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
+ ramfs # in case we're running off a cd
+font = /lib/font/bit/pelm/euro.9.font
+upas/fs
+fn cd { builtin cd $* && awd } # for acme
+switch($service){
+case terminal
+ plumber
+ echo -n accelerated > '#m/mousectl'
+ echo -n 'res 3' > '#m/mousectl'
+ prompt=('term% ' ' ')
+ fn term%{ $* }
+ exec rio -i riostart
+case cpu
+ if (test -e /mnt/term/mnt/wsys) { # rio already running
+ bind -a /mnt/term/mnt/wsys /dev
+ if(test -w /dev/label)
+ echo -n $sysname > /dev/label
+ }
+ bind /mnt/term/dev/cons /dev/cons
+ bind /mnt/term/dev/consctl /dev/consctl
+ bind -a /mnt/term/dev /dev
+ prompt=('cpu% ' ' ')
+ fn cpu%{ $* }
+ news
+ if (! test -e /mnt/term/mnt/wsys) { # cpu call from drawterm
+ font=/lib/font/bit/pelm/latin1.8.font
+ exec rio
+ }
+case con
+ prompt=('cpu% ' ' ')
+ news
+}