diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-18 22:54:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-18 22:54:16 +0200 |
commit | 90b38f03a528f2a1e1b76b69f77bff3cb43b5524 (patch) | |
tree | 51c15c43a9e79a968bd59fa762897e1651e976d1 /rc/bin/inst | |
parent | b163f8327ab068912fb620fb1b13ab0d2c65d435 (diff) | |
download | plan9front-90b38f03a528f2a1e1b76b69f77bff3cb43b5524.tar.xz |
inst: pass on kernel parameters to installed plan9.ini
Diffstat (limited to 'rc/bin/inst')
-rwxr-xr-x | rc/bin/inst/bootsetup | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rc/bin/inst/bootsetup b/rc/bin/inst/bootsetup index e2c5d34ba..a1a432576 100755 --- a/rc/bin/inst/bootsetup +++ b/rc/bin/inst/bootsetup @@ -35,7 +35,7 @@ case go bootfile=9pccpuf if not bootfile=9pcf - { + @{ echo 'bootfile='^$bootfile echo 'bootargs=local!'^$fs if(~ $#nvram 1) @@ -43,8 +43,12 @@ case go 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 } |