[Lunar-commits] <lunar> Support other kernel configuration locations

Peter de Ridder peter at lunar-linux.org
Wed Nov 7 23:42:13 CET 2012


commit 5dac503100ca5ecd692c109be1acc15ad8f706cd
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Wed, 07 Nov 2012 14:42:13 -0800
URL: https://github.com/lunar-linux/lunar/commit/5dac503100ca5ecd692c109be1acc15ad8f706cd

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

--- 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