[BACK]Return to buildfloppies.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / common

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/distrib/common/buildfloppies.sh between version 1.9.2.1 and 1.9.2.2

version 1.9.2.1, 2005/09/19 20:59:41 version 1.9.2.2, 2005/11/27 22:45:09
Line 101  floppy=floppy.$$.tar
Line 101  floppy=floppy.$$.tar
 trap "rm -f ${floppy}" 0 1 2 3                  # EXIT HUP INT QUIT  trap "rm -f ${floppy}" 0 1 2 3                  # EXIT HUP INT QUIT
 rm -f ${floppybase}?${suffix}  rm -f ${floppybase}?${suffix}
   
   #       Try to accurately summarise free space
   #
   [ "$files" = "boot netbsd" ] && {
           set -- $(ls -ln boot)
           boot_size=$5
           boot_pad=$(($(roundup $boot_size 512) * 512 - $boot_size))
           set -- $(ls -ln netbsd)
           netbsd_size=$5
           netbsd_pad=$(($(roundup $netbsd_size 512) * 512 - $netbsd_size))
           echo Free space: boot $boot_pad, netbsd $netbsd_pad, \
                   at end $(($maxdisks * ($floppysize - 16) * 512 \
                   - 512 - $boot_size - $boot_pad \
                   - 512 - $netbsd_size - $netbsd_pad \
                   - 512 * 2))
   }
   
 #       create tar file  #       create tar file
 #  #
 dd if=/dev/zero of=${floppy} bs=8k count=1 2>/dev/null  dd if=/dev/zero of=${floppy} bs=8k count=1 2>/dev/null

Legend:
Removed from v.1.9.2.1  
changed lines
  Added in v.1.9.2.2

CVSweb <webmaster@jp.NetBSD.org>