code: 9ferno

Download patch

ref: c4cfe9a1f4ae8f3209a8484ab57db88f5633bfce
parent: 5e0faca2085cecc4298b7a898fe1e549818c9b0c
author: 9ferno <gophone2015@gmail.com>
date: Fri Aug 13 11:59:08 EDT 2021

move /env bind to the start

--- a/dis/init
+++ b/dis/init
@@ -1,6 +1,9 @@
 # boot initialization here
 # sh -n /dis/init
 
+# disinit.b does this but not sure why it loses it later
+bind -c '#e' /env
+
 load std
 
 mount -a { mntgen } /n
@@ -7,7 +10,7 @@
 mount -a { mntgen } /mnt
 
 # usually better than 1970
-cat '#r/rtc' >/dev/time >[2]/dev/null
+cat '#r/rtc' >/dev/time
 
 #fn showlocaldev {
 #	echo $1'	' $2
@@ -59,8 +62,6 @@
 }
 
 #ns
-	# disinit.b does this but not sure why it loses it later
-	bind -c '#e' /env
 
 if{~ $"sysname vmx9ferno}{
 	# for using the cd
@@ -102,5 +103,5 @@
 		ip/dhcp -h $sysname -p /net/ipifc/$x}
 } &
 
-cd /usr/`{cat /dev/user}
+cd /usr/^`{cat /dev/user}
 sh -l -n # to use the ./lib/profile