From 3f27afa2f7734baef6dda398ff3b791d2eb82b4e Mon Sep 17 00:00:00 2001 From: Ethan Benson Date: Thu, 14 Jun 2001 23:58:11 +0000 Subject: [PATCH] add post-boot-powerpc so mkhybrid will work too. --- tools/boot/woody/post-boot-powerpc | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 tools/boot/woody/post-boot-powerpc diff --git a/tools/boot/woody/post-boot-powerpc b/tools/boot/woody/post-boot-powerpc new file mode 100755 index 00000000..5de7c621 --- /dev/null +++ b/tools/boot/woody/post-boot-powerpc @@ -0,0 +1,36 @@ +#!/bin/bash +# +# post-boot-powerpc 0.1 (C) Daniel Jacobowitz +# +# Released under GPL 10 April 2000 +# See the file COPYING for license details +# +# Do post-image-building tasks for powerpc, to make CDs bootable. +# +# $1 is the CD number +# $2 is the temporary CD build dir +# $3 is the image file + +set -e + +N=$1 +CDROOT=$2 +CDIMAGE=$3 + +cd $CDROOT/.. + +# Only disk 1* bootable +if [ $N != 1 -a $N != 1_NONUS ]; then + exit 0 +fi + +case "$MKISOFS" in + *mkhybrid) + hmount $3 + hattrib -b ":install:powermac" + humount $3 + ;; + *mkisofs) + exit 0 + ;; +esac