X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=a0db99d0c744b01d0e0e114789bdc92a9ecb45e5;hp=2e419a8f64395567f083d44f3af6fe87ce93f4f4;hb=d3c9bd094bf6ee7aee342b90090d04cc0a9f3095;hpb=fa164cea7481233fb376f1a3bb8ba56475f5228c 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 \