home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Login Magazine 68
/
LoginMagazineNo68.bin
/
kernels
/
makedisks.144
< prev
next >
Wrap
Text File
|
1999-11-07
|
721b
|
31 lines
#!/bin/sh
#
# This makes a bootkernel disk in /dev/fd0 from a kernel image.
#
# Run this in a directory containing the kernels you're gonna use, and a
# subdirectory with a master image of the bootkernel disk.
#
# This is the command to use:
#
# makedisk kernel_image disk_size
# ^^ ^^^^^^^^^ This is 1440 or 1200
# ^^^^^ This is the name (and maybe path to) the kernel you're going
# to use, such as scsinet/zImage.
#
mkdisk() {
if [ -r $1/zImage ]; then
./makedisk $1/zImage 1440
elif [ -r $1/bzImage ]; then
./makedisk $1/bzImage 1440
elif [ -r $1/vmlinuz ]; then
./makedisk $1/vmlinuz 1440
fi
}
for dir in * ; do
if [ -d $dir ]; then
mkdisk $dir
fi
done