home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / kernels / makedisk.12 < prev    next >
Encoding:
Text File  |  1995-10-10  |  618 b   |  24 lines

  1. #!/bin/sh
  2. # This makes a bootkernel disk in /dev/fd0 from a kernel image.
  3. #
  4. # Run this in a directory containing the kernels you're gonna use, and a
  5. # subdirectory with a master image of the bootkernel disk.
  6. #
  7. # This is the command to use:
  8. #
  9. # makedisk kernel_image disk_size
  10. #          ^^           ^^^^^^^^^ This is 1440 or 1200
  11. #          ^^^^^ This is the name (and maybe path to) the kernel you're going
  12. #                to use, such as scsinet/zImage.
  13. #
  14.  
  15. mkdisk() {
  16.  makedisk $1/zImage 1200
  17.  dd if=/dev/fd0 bs=1024 count=600 > /cdrom/bootdsks.12/$2
  18. }
  19.  
  20. for dir in *.b ; do
  21.  mkdisk $dir `basename $dir .b`
  22. done
  23.