shithub: riscv

Download patch

ref: f84cf1e60427675514fb056cc1723e45da01e043
parent: 1d9d4ffef89e883949261ec9c56c57e0344726d7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Apr 13 09:53:12 EDT 2022

/sys/lib/newuser: fix wsys botch, crate bin/arm64

--- a/sys/lib/newuser
+++ b/sys/lib/newuser
@@ -8,7 +8,7 @@
 }
 cd $home
 x='$'
-mkdir bin bin/rc bin/mips bin/386 bin/amd64 bin/power bin/arm
+mkdir bin bin/rc bin/mips bin/386 bin/amd64 bin/power bin/arm bin/arm64 
 mkdir lib tmp
 chmod +t tmp
 bind -qc /n/other/usr/$user/tmp $home/tmp
@@ -35,8 +35,12 @@
 	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})
+		if(wsys=`{cat /mnt/term/env/wsys} && ~ $x^#wsys 1) {
 			wsys=/mnt/term^$x^wsys
+		}
+		if not {
+			wsys=()
+		}
 	} 
 	bind -a /mnt/term/dev /dev
 	prompt=('cpu% ' '	')