]> Git Repo - buildroot-mgba.git/commitdiff
get_linux_config.sh: sets THIS_MINOR to 0 if not valid.
authorJulien Boibessot <[email protected]>
Tue, 9 Feb 2010 16:11:04 +0000 (17:11 +0100)
committerPeter Korsgaard <[email protected]>
Wed, 17 Feb 2010 10:18:17 +0000 (11:18 +0100)
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 <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
scripts/get_linux_config.sh

index 1950e9d2e2a35416fad8c6ddfa74033070cbde97..5cd0e371f2ea94456e196747687fb0bb5abd12ac 100755 (executable)
@@ -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...
This page took 0.035673 seconds and 4 git commands to generate.