diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-02-27 05:28:06 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-02-27 05:28:06 +0000 |
commit | 8a9b1a9ba88a9de2244d47aee5b5666810fc71e5 (patch) | |
tree | 9f73b4f902c507281e34fc5767d32966eed5e176 | |
parent | 8f76854893b48e2e6692db3ea7a7e9768b77b38c (diff) | |
download | pkgsrc-8a9b1a9ba88a9de2244d47aee5b5666810fc71e5.tar.gz |
err fixed the problem in checkconf().
-rwxr-xr-x | sysutils/mklivecd/files/mklivecd.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysutils/mklivecd/files/mklivecd.sh b/sysutils/mklivecd/files/mklivecd.sh index aa717591879..9c9c0a9f173 100755 --- a/sysutils/mklivecd/files/mklivecd.sh +++ b/sysutils/mklivecd/files/mklivecd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: mklivecd.sh,v 1.2 2004/02/27 01:32:31 xtraeme Exp $ +# $NetBSD: mklivecd.sh,v 1.3 2004/02/27 05:28:06 xtraeme Exp $ # # Copyright (c) 2004 Juan RP <xtraeme@NetBSD.org> # All rights reserved. @@ -168,6 +168,8 @@ EOF echo "=> Configuration file created, now please edit it." echo "=> Path: $config_file" + elif [ -f $config_file -a $target != "config" ]; then + showmsg "Using $config_file" else showmsg "$config_file already exists!" bye 1 @@ -323,7 +325,7 @@ do_cdlive() cat > $ISODIR/etc/rc.d/root <<_EOF_ #!/bin/sh # -# \$NetBSD: mklivecd.sh,v 1.2 2004/02/27 01:32:31 xtraeme Exp $ +# \$NetBSD: mklivecd.sh,v 1.3 2004/02/27 05:28:06 xtraeme Exp $ # # PROVIDE: root @@ -575,7 +577,9 @@ if [ -z "$config_file" ]; then config_file=$config_dir/mklivecd.conf fi -case "$1" in +target=$1 + +case "$target" in iso) checkconf do_cdlive iso |