ref: a300a75fc388120592e2abc1a6ca5ea00f38cf18
dir: /cpurio/
#!/bin/rc if(! ~ $sysname aib && ~ `{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 aib && test -f /tmp/sk){ auth/factotum auth/aescbc -d </tmp/sk | read -m >/mnt/factotum/ctl } webcookies webfs plumber switch($sysname){ case w500 echo pin 22 >'#A'/audioctl echo inpin 23 >'#A'/audioctl case hsw echo pin 27 >'#A/audioctl' echo inpin 25 >'#A'/audioctl } if(! ~ $sysname aib) 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)$'