diff options
Diffstat (limited to 'rc/bin/inst/bootsetup')
-rwxr-xr-x | rc/bin/inst/bootsetup | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rc/bin/inst/bootsetup b/rc/bin/inst/bootsetup index 9e5c71d46..7de697850 100755 --- a/rc/bin/inst/bootsetup +++ b/rc/bin/inst/bootsetup @@ -1,7 +1,7 @@ #!/bin/rc # desc: create a boot floppy or configure hard disk to boot plan 9 -# prereq: copydist +# prereq: systype copydist switch($1) { case go @@ -18,9 +18,14 @@ case go } if(! test -f /tmp/plan9.ini) { + if(~ $syst cpu) + bootfile=9pccpuf + if not + bootfile=9pcf { - echo 'bootfile=9pcf' + echo 'bootfile='^$bootfile echo 'bootargs=local!'^$fs + echo 'sysname=cirno' echo 'mouseport='^$mouseport echo 'monitor='^$monitor echo 'vgasize='^$vgasize @@ -47,6 +52,7 @@ case go logprog cp /tmp/plan9.ini /n/9fat/plan9.ini logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat logprog cp /n/newfs/386/9pcf /n/9fat/9pcf + logprog cp /n/newfs/386/9pccpuf /n/9fat/9pccpuf echo echo 'There are myriad ways to boot a Plan 9 system.' |