aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Julien Boibessot <julien.boibessot@armadeus.com>2010-02-09 17:11:04 +0100
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-02-17 11:18:17 +0100
commitfb1c82ad881ce01f9d7c26f646af402638696a69 (patch)
tree5bada32c4eb8f674a6934fa3ded4a53638c23404 /scripts
parente777294fd60e1450b1cb80e09facd5bdd4b1fc22 (diff)
downloadbuildroot-fb1c82ad881ce01f9d7c26f646af402638696a69.tar.gz
buildroot-fb1c82ad881ce01f9d7c26f646af402638696a69.tar.bz2
get_linux_config.sh: sets THIS_MINOR to 0 if not valid.
Sets THIS_MINOR to 0 if not valid, ie when processing a Linux config file which does not have a minor number extension; ex: "<name>-linux-2.6.<major>.config" Otherwise bash is raising an error/exception (line 59) and script can not complete. Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_linux_config.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/get_linux_config.sh b/scripts/get_linux_config.sh
index 1950e9d2e2..5cd0e371f2 100755
--- a/scripts/get_linux_config.sh
+++ b/scripts/get_linux_config.sh
@@ -35,6 +35,7 @@ function linux_version()
KERNEL=`echo ${KCONFIG} | sed s/.*linux-2.6./linux-2.6./g -`
THIS_MAJOR=${KERNEL:10:2}
THIS_MINOR=${KERNEL:13}
+ THIS_MINOR=${THIS_MINOR:=0}
}
# Try to be careful...