]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Also look in /boot for .config
authorDave Jones <davej@suse.de>
Sun, 28 Apr 2002 11:56:05 +0000 (04:56 -0700)
committerJaroslav Kysela <perex@suse.cz>
Sun, 28 Apr 2002 11:56:05 +0000 (04:56 -0700)
Try to get config file distro placed in boot.

scripts/Configure

index 12f7fbcae1637e5a47de9d94204b8ab50a04fb52..f0d5988da0b5b81e086eef59710bff2b34eccea1 100644 (file)
@@ -541,7 +541,10 @@ DEFAULTS=.config
 if [ ! -f .config ]; then
   DEFAULTS=/etc/kernel-config
   if [ ! -f $DEFAULTS ]; then
-    DEFAULTS=arch/$ARCH/defconfig
+    DEFAULTS=/boot/config-`uname -r`
+    if [ ! -f $DEFAULTS ]; then
+      DEFAULTS=arch/$ARCH/defconfig
+    fi
   fi
 fi