[Lunar-commits] <lunar> Merge pull request #30 from cavalier38/kernel_options

Auke Kok sofar+github at foo-projects.org
Sun Nov 18 20:50:59 CET 2012


commit 108afe439c69dcea47edbb684c0b0850b3256df6
Author: Auke Kok <sofar+github at foo-projects.org>
Date: Sun, 18 Nov 2012 11:50:59 -0800
URL: https://github.com/lunar-linux/lunar/commit/108afe439c69dcea47edbb684c0b0850b3256df6

Merge pull request #30 from cavalier38/kernel_options

Support other kernel configuration locations
---
  libs/kernel.lunar | +4/-0     
  1 file changed

--- a/libs/kernel.lunar
+++ b/libs/kernel.lunar
@@ -57,8 +57,12 @@ update_bootloader() {
 kernel_config_exists() {
     if [ -e /proc/config.gz ]; then
         echo "/proc/config.gz"
+    elif [ -e /boot/config-$(uname -r)-$(arch).gz ]; then
+        echo "/boot/config-$(uname -r)-$(arch).gz"
     elif [ -e /usr/src/linux/.config ]; then
         echo "/usr/src/linux/.config"
+    elif [ -e $CONFIG_CACHE/.config.current ]; then
+        echo "$CONFIG_CACHE/.config.current"
     elif [ -e $CONFIG_CACHE/.config.2.6.stable ]; then
         echo "$CONFIG_CACHE/.config.2.6.stable"
     else




More information about the Lunar-commits mailing list