]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/inst/bootsetup
fix manual (book) build, add files/permissions for lp, compile postscript
[plan9front.git] / rc / bin / inst / bootsetup
index 71175960d29735c9b739718d0f2995f7b065b130..9e5c71d466cbf591e9d1e290120c8ad78a5cc79b 100755 (executable)
@@ -19,17 +19,18 @@ case go
 
        if(! test -f /tmp/plan9.ini) {
                {
-                       echo bootfile'='9pcf
+                       echo 'bootfile=9pcf'
                        echo 'bootargs=local!'^$fs
                        echo 'mouseport='^$mouseport
                        echo 'monitor='^$monitor
                        echo 'vgasize='^$vgasize
-                       echo '*nomp=1'
+                       if(test -f '#ec/*nomp')
+                               echo '*nomp='
                } >/tmp/plan9.ini
        }
 
        need9fatformat=no
-       if(! isfat $fat)
+       if(! ~ `{fstype $fat} dos)
                need9fatformat=yes
        if(! test -f /srv/dos)
                dossrv
@@ -70,7 +71,8 @@ case go
 
 case checkdone
        xxxfat=(/dev/sd*/9fat)
-       if(! isfat $xxxfat(1) || ! ~ $didbootsetup 1){
+       xxxfat=$xxxfat(1)
+       if(! ~ `{fstype $xxxfat} dos || ! ~ $didbootsetup 1){
                bootsetup=ready
                export bootsetup
        }