summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/mklivecd/Makefile4
-rwxr-xr-xsysutils/mklivecd/files/mklivecd.sh42
2 files changed, 26 insertions, 20 deletions
diff --git a/sysutils/mklivecd/Makefile b/sysutils/mklivecd/Makefile
index 8fe30d2f816..53866bab8f2 100644
--- a/sysutils/mklivecd/Makefile
+++ b/sysutils/mklivecd/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2004/04/27 15:34:19 xtraeme Exp $
+# $NetBSD: Makefile,v 1.7 2004/05/01 10:46:11 xtraeme Exp $
-DISTNAME= mklivecd-0.5
+DISTNAME= mklivecd-0.6
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/sysutils/mklivecd/files/mklivecd.sh b/sysutils/mklivecd/files/mklivecd.sh
index ee1dcd6035c..749436ab448 100755
--- a/sysutils/mklivecd/files/mklivecd.sh
+++ b/sysutils/mklivecd/files/mklivecd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: mklivecd.sh,v 1.12 2004/04/27 16:33:12 xtraeme Exp $
+# $NetBSD: mklivecd.sh,v 1.13 2004/05/01 10:46:11 xtraeme Exp $
#
# Copyright (c) 2004 Juan RP <xtraeme@NetBSD.org>
# All rights reserved.
@@ -246,31 +246,37 @@ do_cdlive()
[ ! -d $ISODIR/$BOOTDIR ] && mkdir -p $ISODIR/$BOOTDIR
for f in $GRUB_FILES
do
- cp @PREFIX@/share/grub/@MACHINE_ARCH@-/$f \
- $ISODIR/$BOOTDIR
- if [ "$verbose_mode" = "on" ]; then
- showmsg "Copying $f into $ISODIR/boot/grub."
+ if [ ! -f $ISODIR/$BOOTDIR/$f ]; then
+ cp @PREFIX@/share/grub/@MACHINE_ARCH@-/$f \
+ $ISODIR/$BOOTDIR
+ [ "$verbose_mode" = "on" ] && \
+ showmsg "Copying $f into $ISODIR/boot/grub."
+ else
+ showmsg "Not copying $f, already exists."
fi
done
- cp $WORKDIR/$KERNEL_NAME/netbsd $ISODIR
- make clean >/dev/null 2>&1
- rm -rf $KERNEL_NAME
- echo
- showmsg "Build successful"
- if [ "$verbose_mode" = "on" ]; then
- showmsg "Boot/kernel image installed!"
- showmsg "Next step: ${progname} base"
+ cp $WORKDIR/$KERNEL_NAME/netbsd $ISODIR/$BOOTDIR
+ if [ $? -eq 0 ]; then
+ showmsg "boot/kernel installed.."
+ if [ "$verbose_mode" = "on" ]; then
+ showmsg "Boot/kernel images installed!"
+ showmsg "Next step: ${progname} base"
+ fi
+ echo
+ make clean >/dev/null 2>&1
+ rm -rf $KERNEL_NAME
+ else
+ showmsg "Couldn't install the kernel."
fi
- echo
else
echo
- showmsg "Build failed"
- showmsg "Boot/kernel image not installed!"
+ showmsg "kernel build failed."
+ showmsg "Boot/kernel images were not installed!"
echo
fi
;;
base)
- chown -R root:wheel $ISODIR/netbsd $ISODIR/$BOOTDIR
+ chown -R root:wheel $ISODIR/$BOOTDIR
for F in ${BASE_SETS}
do
@@ -343,7 +349,7 @@ do_cdlive()
cat > $ISODIR/etc/rc.d/root <<_EOF_
#!/bin/sh
#
-# \$NetBSD: mklivecd.sh,v 1.12 2004/04/27 16:33:12 xtraeme Exp $
+# \$NetBSD: mklivecd.sh,v 1.13 2004/05/01 10:46:11 xtraeme Exp $
#
# PROVIDE: root