From d3c9bd094bf6ee7aee342b90090d04cc0a9f3095 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 7 Mar 2009 14:13:39 +0100 Subject: [PATCH] Use $RELEASE as default in interactive setup script --- debian/changelog | 6 +++--- grml-debootstrap | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 323ba0c..b2d224b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,15 +1,15 @@ grml-debootstrap (0.24) unstable; urgency=low * Update documentation. - * Use configure $MIRROR and $HOSTNAME as defaults in interactive - script. + * Use configuration of $MIRROR, $HOSTNAME and $RELEASE as + defaults in interactive setup script. * Add initial support for Debian/squeeze and drop sarge instead. * Update VCS*-headers and long description of Debian package. * Move asciidoc, docbook-xsl, xsltproc to Build-Depends-Indep. * Drop $CHROOTMIRROR variable, instead use $MIRROR for debootstrap as well as inside the chroot. - -- Michael Prokop Wed, 04 Mar 2009 18:53:21 +0100 + -- Michael Prokop Sat, 07 Mar 2009 14:12:43 +0100 grml-debootstrap (0.23) unstable; urgency=low diff --git a/grml-debootstrap b/grml-debootstrap index 2e419a8..a0db99d 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -254,7 +254,8 @@ prompt_for_bootmanager() # ask for Debian release {{{ prompt_for_release() { - RELEASE="$(dialog --stdout --title "${PN}" --default-item lenny --menu \ + [ -n "$RELEASE" ] && DEFAULT_RELEASE="$RELEASE" || DEFAULT_RELEASE='lenny' + RELEASE="$(dialog --stdout --title "${PN}" --default-item $DEFAULT_RELEASE --menu \ "Please enter the Debian release you would like to use for installation:" \ 0 50 4 \ etch Debian/old-stable \ -- 2.1.4