xref: /plan9-contrib/usr/glenda/lib/profile (revision d46c239f8612929b7dbade67d0d071633df3a15d)
1bind -a $home/bin/rc /bin
2bind -a $home/bin/$cputype /bin
3bind -c tmp /tmp
4if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
5	ramfs	# in case we're running off a cd
6font = /lib/font/bit/pelm/euro.9.font
7upas/fs
8switch($service){
9case terminal
10	plumber
11	echo -n accelerated > '#m/mousectl'
12	echo -n 'res 3' > '#m/mousectl'
13	prompt=('term% ' '	')
14	fn term%{ $* }
15	exec rio -i riostart
16case cpu
17	if (test -e /mnt/term/mnt/wsys) { # rio already running
18		bind -a /mnt/term/mnt/wsys /dev
19		if(test -w /dev/label)
20			echo -n $sysname > /dev/label
21	}
22	bind /mnt/term/dev/cons /dev/cons
23	bind /mnt/term/dev/consctl /dev/consctl
24	bind -a /mnt/term/dev /dev
25	prompt=('cpu% ' '	')
26	fn cpu%{ $* }
27	news
28	if (! test -e /mnt/term/mnt/wsys) {	# cpu call from drawterm
29		font=/lib/font/bit/pelm/latin1.8.font
30		exec rio
31	}
32case con
33	prompt=('cpu% ' '	')
34	news
35}
36