]> Zhao Yanbai Git Server - minix.git/commitdiff
restore pkgin_cd 30/2830/1
authorBen Gras <ben@minix3.org>
Sat, 13 Sep 2014 14:50:30 +0000 (16:50 +0200)
committerBen Gras <ben@minix3.org>
Sat, 13 Sep 2014 15:05:52 +0000 (17:05 +0200)
. make release.sh put packages on the cd
. make setup script produce a better rc.package file

Change-Id: Ia4b7588975c2ddf630fa1c510715d82755f67f1e

minix/commands/setup/setup.sh
releasetools/release.functions

index bf662f493632ad3da60eb820fb904b975d4d5a60..0fa2501f1e5e58b04e9511dd89c52ddaf3bba6c7 100644 (file)
@@ -739,7 +739,7 @@ fi
 chroot /mnt update_bootcfg
 
 # Save name of CD drive
-cddrive="`mount | grep /usr | awk '{ print $1 }' | sed 's/p.*//'`"
+cddrive="`mount | fgrep ' /usr ' | awk '{ print $1 }' | sed 's/p.*//'`"
 echo "cddrive=$cddrive" >>/mnt/usr/etc/rc.package
 
 bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`"
index 151b9f98374abae0b0de48817641b9019bb6bf74..fde32d4a39409cfd4f30416082d18f966c3587bd 100644 (file)
@@ -135,7 +135,7 @@ copy_local_packages()
                                  exit 1
                              fi
        
-                             if [ "`wc -l $indexname`" -lt 3 ]
+                             if [ "`wc -l <$indexname`" -lt 3 ]
                              then      $indexname is too short.
                                  rm $indexname
                                  exit 1