Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / cobalt / stand / installkernel / installkernel.sh
blobf9ea40ce9821c66c52e6f40e27b7f29c75c28479
1 #!/bin/sh
3 # $NetBSD: installboot.sh,v 1.2 2000/06/01 14:33:43 soren Exp $
5 EXT2_MOUNT=/stand
6 NETBSD_KERNEL=netbsd
7 FW_KERNELS="vmlinux.gz vmlinux_RAQ.gz vmlinux_raq-2800.gz"
9 mount | grep -q " on ${EXT2_MOUNT} type ext2fs "
11 if [ $? -ne 0 ]; then
12 echo "WARNING: ${EXT2_MOUNT} is not an ext2 file system"
15 if [ ! -d ${EXT2_MOUNT}/boot ]; then
16 echo "ERROR: ${EXT2_MOUNT}/boot does not exist"
17 exit 1
20 gzip -2 -c /${NETBSD_KERNEL} > ${EXT2_MOUNT}/boot/netbsd.gz
22 for KERNEL in ${FW_KERNELS}; do
23 rm -f ${EXT2_MOUNT}/boot/${KERNEL}
24 ln ${EXT2_MOUNT}/boot/${NETBSD_KERNEL}.gz ${EXT2_MOUNT}/boot/${KERNEL}
25 done