47 lines
998 B
Bash
47 lines
998 B
Bash
bind -a $home/bin/rc /bin
|
|
bind -a $home/bin/$cputype /bin
|
|
if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)
|
|
ramfs # in case we're running off a cd
|
|
#font=/lib/font/bit/terminus/unicode.12.font
|
|
font=/lib/font/bit/terminus-emoji/unicode.12.font
|
|
switch($service){
|
|
case terminal
|
|
if(! webcookies >[2]/dev/null)
|
|
webcookies -f /tmp/webcookies
|
|
webfs
|
|
plumber
|
|
echo -n accelerated > '#m/mousectl'
|
|
echo -n 'res 3' > '#m/mousectl'
|
|
prompt=('; ' '> ')
|
|
fn term%{ $* }
|
|
keys
|
|
if(~ $sysname 'rohan'){
|
|
hjfs -f /dev/sdE1/fs -n 9book
|
|
mount /srv/9book /n/9book
|
|
fscale off
|
|
}
|
|
if(~ $offline 'yes') echo ok
|
|
if not{
|
|
email-login
|
|
gridstart -m
|
|
upas/fs
|
|
}
|
|
rio -i riostart
|
|
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=/mnt/term^$wsys
|
|
}
|
|
bind -a /mnt/term/dev /dev
|
|
prompt=('cpu% ' ' ')
|
|
fn cpu%{ $* }
|
|
plumber
|
|
webfs
|
|
|
|
case con
|
|
prompt=('cpu% ' ' ')
|
|
}
|