Use "gzip -dc" instead of "zcat" - some versions of zcat don't grok

gzip.
This commit is contained in:
riz 2013-02-20 18:33:37 +00:00
parent 6948e65203
commit 3d6cc52bac
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: beagleboard.conf,v 1.10 2013/02/17 20:49:16 jmcneill Exp $
# $NetBSD: beagleboard.conf,v 1.11 2013/02/20 18:33:37 riz Exp $
# BeagleBoard customization script used by mkimage
#
board=beagleboard
@ -40,7 +40,7 @@ EOF
echo "${bar} installing BEAGLEBOARD kernel to /boot ${bar}"
case "${kernel}" in
*.gz)
zcat "${kernel}" > "${mnt}/boot/${kernelimg}"
gzip -dc "${kernel}" > "${mnt}/boot/${kernelimg}"
;;
*)
cp "${kernel}" "${mnt}/boot/${kernelimg}"

View File

@ -1,4 +1,4 @@
# $NetBSD: rpi.conf,v 1.18 2013/02/17 20:49:16 jmcneill Exp $
# $NetBSD: rpi.conf,v 1.19 2013/02/20 18:33:37 riz Exp $
# Raspberry Pi customization script used by mkimage
#
@ -44,7 +44,7 @@ EOF
echo "${bar} installing kernel ${bar}"
case ${kernel} in
*.gz)
zcat ${kernel} > ${mnt}/boot/kernel.img
gzip -dc ${kernel} > ${mnt}/boot/kernel.img
;;
*)
cp ${kernel} ${mnt}/boot/kernel.img