home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / slakinst / kernels / makedisk.144 < prev    next >
Encoding:
Text File  |  1995-08-04  |  670 b   |  25 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 1440
  17.  echo "cat /dev/fd0 | gzip -9c > /cdrom/bootdsks.144/$2"
  18.  cat /dev/fd0 | gzip -9c > /cdrom/bootdsks.144/$2
  19. }
  20.  
  21. for dir in *.b ; do
  22.  mkdisk $dir `basename $dir .b`.gz
  23. done
  24.