git: 9front

Download patch

ref: bdfef46e6b507becf74022ef74ea23b0ce5b983b
parent: 5ea2d11107cc519e5ed665c4f6384d1389c82cf9
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu Jun 9 16:43:04 EDT 2011

fix * case

--- a/rc/bin/inst/bootsetup
+++ b/rc/bin/inst/bootsetup
@@ -3,7 +3,11 @@
 # desc: create a boot floppy or configure hard disk to boot plan 9
 # prereq: systype copydist
 
-fats=(/dev/sd*/9fat)
+fats=()
+for(i in /dev/sd*/9fat){
+	if(test -f $i)
+		fats=($fats $i)
+}
 
 switch($1) {
 case checkdone checkready
--- a/rc/bin/inst/nvramsetup
+++ b/rc/bin/inst/nvramsetup
@@ -3,7 +3,11 @@
 # desc: invalidate nvram
 # prereq: systype copydist
 
-files=(/dev/sd*/nvram)
+files=()
+for(i in /dev/sd*/nvram){
+	if(test -f $i)
+		files=($files $i)
+}
 
 switch($1){
 case checkdone checkready
--