git: 9front

Download patch

ref: 82139e2c70bdfb3bb73ec6d2d4bf18504291bb96
parent: a7471cd83e3c1d6c7926962aa05fe3157a67757b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Jun 18 18:54:16 EDT 2012

inst: pass on kernel parameters to installed plan9.ini

--- a/rc/bin/inst/bootsetup
+++ b/rc/bin/inst/bootsetup
@@ -35,7 +35,7 @@
 			bootfile=9pccpuf
 		if not
 			bootfile=9pcf
-		{
+		@{
 			echo 'bootfile='^$bootfile
 			echo 'bootargs=local!'^$fs
 			if(~ $#nvram 1)
@@ -43,8 +43,12 @@
 			echo 'mouseport='^$mouseport
 			echo 'monitor='^$monitor
 			echo 'vgasize='^$vgasize
-			if(test -f '#ec/*nomp')
-				echo '*nomp=1'
+			cd '#ec'
+			for(i in *){
+				echo -n $"i'='
+				cat $i
+				echo
+			} | grep -v '(apm0|e820|bootfile|bootargs|nvram|mouseport|monitor|vgasize)'
 		} >/tmp/plan9.ini
 	}
 
--