From b4312a8ba12e2c15831e9caf09bf5b5c09473d7d Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jow@openwrt.org>
Date: Sun, 15 Apr 2012 15:21:55 +0000
Subject: base-files: reformat banner to better work with varying version
 string lengths, do not set image options if menu is disabled (#11280)

SVN-Revision: 31289
---
 package/base-files/Makefile         | 2 +-
 package/base-files/files/etc/banner | 4 +++-
 package/base-files/image-config.in  | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index f3bfecaa75..892a31777c 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 include $(INCLUDE_DIR)/version.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=105
+PKG_RELEASE:=106
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
diff --git a/package/base-files/files/etc/banner b/package/base-files/files/etc/banner
index 3018615682..058cb55733 100644
--- a/package/base-files/files/etc/banner
+++ b/package/base-files/files/etc/banner
@@ -3,7 +3,9 @@
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
           |__| W I R E L E S S   F R E E D O M
- ATTITUDE ADJUSTMENT (%C, %R) ----------
+ -----------------------------------------------------
+ ATTITUDE ADJUSTMENT (%C, %R)
+ -----------------------------------------------------
   * 1/4 oz Vodka      Pour all ingredients into mixing
   * 1/4 oz Gin        tin with ice, strain into glass.
   * 1/4 oz Amaretto
diff --git a/package/base-files/image-config.in b/package/base-files/image-config.in
index a9ec76a10b..ac08c8da7c 100644
--- a/package/base-files/image-config.in
+++ b/package/base-files/image-config.in
@@ -145,7 +145,7 @@ menuconfig VERSIONOPT
 	config VERSION_DIST
 		string
 		prompt "Release distribution" if VERSIONOPT
-		default "OpenWrt"
+		default "OpenWrt" if VERSIONOPT
 		help
 			This is the name of the release distribution.
 			If unspecified, it defaults to OpenWrt.
@@ -168,7 +168,7 @@ menuconfig VERSIONOPT
 	config VERSION_REPO
 		string
 		prompt "Release repository" if VERSIONOPT
-		default "http://downloads.openwrt.org/snapshots/trunk/%T/packages"
+		default "http://downloads.openwrt.org/snapshots/trunk/%T/packages" if VERSIONOPT
 		help
 			This is the repository address embedded in the image, it defaults
 			to the trunk snapshot repo; the url may contain the following placeholders:
-- 
cgit v1.2.3