ref: 9cc3442d4a250855f09dd663ded45cbd4c99fe28
parent: 433249b227bf57b45cd5b40b1e6b69c26b89bc78
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 20 15:55:42 EST 2025
newuser, dist: sync profile script for glenda there were a number of divergencies, which meant that on a default install, glenda didn't have all the niceties that a new user would get; sync it, but keep the difference between what's started in rio. (the grey screen is iconic)
--- a/sys/lib/dist/usr/glenda/lib/profile
+++ b/sys/lib/dist/usr/glenda/lib/profile
@@ -1,18 +1,18 @@
-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
+bind -a /usr/bin/rc /bin
+bind -a /usr/bin/$x^cputype /bin
+mount -qC /srv/cwfs /n/other other
+bind -qc /n/other/usr/$x^user/tmp /usr/tmp
+bind -c /usr/tmp /tmp
font=/lib/font/bit/vga/unicode.font
-switch($service){
+switch($x^service){
case terminal
- if(! webcookies >[2]/dev/null)
- webcookies -f /tmp/webcookies
+ webcookies
webfs
plumber
echo -n accelerated > '#m/mousectl'
echo -n 'res 3' > '#m/mousectl'
prompt=('term% ' ' ')
- fn term%{ $* }
+ fn term%{ $x^* }
rio -i riostart
case cpu
bind /mnt/term/dev/cons /dev/cons
@@ -19,12 +19,20 @@
bind -q /mnt/term/dev/consctl /dev/consctl
>[2] /dev/null {
cp /dev/sysname /mnt/term/dev/label
- if(test -s /mnt/term/env/wsys)
- wsys=/mnt/term^`{cat /mnt/term/env/wsys}
+ if(wsys=`{cat /mnt/term/env/wsys})
+ wsys=/mnt/term^$x^wsys
}
bind -a /mnt/term/dev /dev
prompt=('cpu% ' ' ')
- fn cpu%{ $* }
+ fn cpu%{ $x^* }
+ if(! test -e /mnt/term/dev/wsys){
+ # call from drawterm
+ auth/factotum
+ webcookies
+ webfs
+ plumber
+ rio
+ }
case con
prompt=('cpu% ' ' ')
}
--- a/sys/lib/newuser
+++ b/sys/lib/newuser
@@ -29,7 +29,7 @@
echo -n 'res 3' > '#m/mousectl'
prompt=('term% ' ' ')
fn term%{ $x^* }
- rio
+ rio -i riostart
case cpu
bind /mnt/term/dev/cons /dev/cons
bind -q /mnt/term/dev/consctl /dev/consctl
@@ -63,6 +63,12 @@
prompt=('cpu% ' ' ')
}
!
+
+cat > bin/rc/riostart <<!
+#!/bin/rc
+!
+chmod +x bin/rc/riostart
+
cat > lib/plumbing <<!
# to update: cp $$home/lib/plumbing /mnt/plumb/rules
--
⑨