shithub: rc

ref: e384215db180197da7f5623acd0623a67215a759
dir: /cpurio/

View raw version
#!/bin/rc
if(! ~ $sysname u16 && ~ `{ns | grep '#v'} ''){
	screenrc
	echo softscreen off >'#v/vgactl'
	echo hwaccel on >'#v/vgactl'
}
rfork efns	# weeeee
font=/lib/font/bit/vga/unicode.font
bind -a '#A' /dev
bind -c $home/tmp /tmp
bind -a $home/bin/rc /bin
bind -a $home/bin/$cputype /bin
test -f $home/p/rc/bindbins && . $home/p/rc/bindbins
if(! ~ $sysname u16 && test -f /tmp/sk){
	auth/factotum
	auth/aescbc -d </tmp/sk | read -m >/mnt/factotum/ctl
}
webcookies
webfs
plumber
switch($sysname){
case u28
	echo pin 22 >'#A'/audioctl
	echo inpin 23 >'#A'/audioctl
case u11
	echo pin 27 >'#A/audioctl'
	echo inpin 25 >'#A'/audioctl
}
if(! ~ $sysname u16)
	echo master 40 >'#A/volume'
echo accelerated 3 >'#m'/mousectl
prompt=('; ' '	')
# FIXME
cat /sys/lib/kbmap/us >/dev/kbmap
rio -i riostart
# might be nice to do dontkill '^(rio|rc)$'