ref: 1daffb595e063fdfb42da7ee86d202d5055bd0a1
dir: /dis/init/
# boot initialization here # sh -n /dis/init load std mount { mntgen } /n ## usually better than 1970 #cat '#r/rtc' >/dev/time >[2]/dev/null # #fn showlocaldev { # echo $1' ' $2 # if(~ $#bootargs 0){ # if(! ~ $#cdboot 0){ # if(~ $2 9660) # bootargs=local!$1 # } # if not { # if(! ~ $2 '' dos) # bootargs=local!$1 # } # } #} # #fn showlocaldevs{ # for(d in /dev/sd*) if(test -r $d/ctl){ # q=`{sed 's,(inquiry|geometry),\ #\1,g' $d/ctl | grep inquiry} # echo $d':' $q(2-) # for(i in `{ls -p $d}){ # p=$d/$i # switch($i){ # case ctl raw log led # ; # case plan9 nvram swap # echo $p # case * # showlocaldev $p `{fstype $p} # } # } # } # for(d in /shr/sd*) if(test -d $d) { # echo $d':' # for(p in $d/*.^(iso paq)) if(test -f $p){ # t=`{fstype $p} # ~ $#t 0 || showlocaldev $p $t # } # } #} # #showlocaldevs ftest -f `{cat /dev/user}^/lib/profile && `{cat /dev/user}^/lib/profile sh -n