shithub: 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	Fri Aug 13 08:24:53 2021
+++ b/dis/init	Fri Aug 13 11:59:08 2021
@@ -1,13 +1,16 @@
 # 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
 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