diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2007-04-10 03:05:49 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2007-04-10 03:05:49 +0000 |
commit | 96dc7f71717a3d45a30315532c6cb768fd9ab538 (patch) | |
tree | 3fa4f27ea6cb34573d9451a33e77ec25d6ea942c /sysutils | |
parent | 3da339dfd4c4f9514e34db2c16dda1ef96198968 (diff) | |
download | pkgsrc-96dc7f71717a3d45a30315532c6cb768fd9ab538.tar.gz |
Extra bonus for 0.15: if there's a set already found in BASE_SETS_DIR
downloaded by the fetch target, ask interactively to the user if wants
to download again or not.
Diffstat (limited to 'sysutils')
-rwxr-xr-x | sysutils/mklivecd/files/mklivecd.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sysutils/mklivecd/files/mklivecd.sh b/sysutils/mklivecd/files/mklivecd.sh index 099eeae5044..1668e25b512 100755 --- a/sysutils/mklivecd/files/mklivecd.sh +++ b/sysutils/mklivecd/files/mklivecd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: mklivecd.sh,v 1.33 2007/04/10 02:23:34 xtraeme Exp $ +# $NetBSD: mklivecd.sh,v 1.34 2007/04/10 03:05:49 xtraeme Exp $ # # Copyright (c) 2004-2007 Juan Romero Pardines. # All rights reserved. @@ -546,7 +546,14 @@ do_cdlive() for f in ${BASE_SETS} do if [ -f "$f" ]; then - /usr/bin/ftp -4aR "$REMOTE_SETS_URL/$f" + echo -n "There's already '$f', do you want to " + echo -n "download it again? (y/n) " + read output_u + if [ "$output_u" = "y" ]; then + rm "$f" + elif [ "$output_u" = "n" -o "$output_u" != "y" ]; then + continue + fi fi if [ -n "$verbose_mode" ]; then @@ -635,7 +642,7 @@ do_cdlive() cat > $ISODIR/etc/rc.d/root <<_EOF_ #!/bin/sh # -# \$NetBSD: mklivecd.sh,v 1.33 2007/04/10 02:23:34 xtraeme Exp $ +# \$NetBSD: mklivecd.sh,v 1.34 2007/04/10 03:05:49 xtraeme Exp $ # # PROVIDE: root |