2023-10-16 22:14:54 -04:00
|
|
|
bind -qa $home/bin/rc /bin
|
|
|
|
bind -qa $home/bin/$cputype /bin
|
|
|
|
bind -qa /usr/sdf/bin /bin
|
|
|
|
bind -qa $home/lib/font/bit /lib/font/bit # my fonts
|
|
|
|
upasname=$user@9p.sdf.org
|
|
|
|
|
|
|
|
#font=/lib/font/bit/vga/unicode.font
|
|
|
|
font=/lib/font/bit/kurinto/kurinto.18.mono.font # font change
|
|
|
|
touch $home/lastlogin
|
|
|
|
|
|
|
|
switch($service){
|
|
|
|
case terminal
|
|
|
|
webcookies
|
|
|
|
webfs
|
|
|
|
plumber
|
|
|
|
echo -n accelerated > '#m/mousectl'
|
|
|
|
echo -n 'res 3' > '#m/mousectl'
|
|
|
|
prompt=('term% ' ' ')
|
|
|
|
fn term%{ $* }
|
|
|
|
upas/fs # let acme do mail
|
|
|
|
rio
|
|
|
|
case cpu
|
|
|
|
bind /mnt/term/dev/cons /dev/cons
|
|
|
|
bind -q /mnt/term/dev/consctl /dev/consctl
|
|
|
|
>[2] /dev/null {
|
|
|
|
cp /dev/sysname /mnt/term/dev/label
|
|
|
|
if(wsys=`{cat /mnt/term/env/wsys} && ~ $#wsys 1) {
|
|
|
|
wsys=/mnt/term^$wsys
|
|
|
|
}
|
|
|
|
if not {
|
|
|
|
wsys=()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bind -a /mnt/term/dev /dev
|
|
|
|
prompt=('cpu% ' ' ')
|
|
|
|
fn cpu%{ $* }
|
|
|
|
if(! test -e /mnt/term/dev/wsys){
|
|
|
|
# call from drawterm
|
|
|
|
if(test -e /mnt/term/dev/secstore){
|
|
|
|
auth/factotum -n
|
|
|
|
read -m /mnt/term/dev/secstore >/mnt/factotum/ctl
|
|
|
|
echo >/mnt/term/dev/secstore
|
|
|
|
}
|
|
|
|
if not
|
|
|
|
auth/factotum
|
|
|
|
webcookies
|
2023-10-17 19:44:27 -04:00
|
|
|
cat $home/secure/rsa.sec >>/mnt/factotum/ctl # append SSH key
|
2023-10-16 22:14:54 -04:00
|
|
|
webfs
|
|
|
|
plumber
|
|
|
|
upas/fs # let acme do mail
|
|
|
|
#rio -i riostart
|
2023-10-18 18:59:38 -04:00
|
|
|
rio -i riostart-custom # custom rio start script
|
2023-10-16 22:14:54 -04:00
|
|
|
}
|
|
|
|
case con
|
|
|
|
prompt=('cpu% ' ' ')
|
|
|
|
}
|