lkml.org 
[lkml]   [1996]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch for Menuconfig 2.0.23+ & 2.1.*

This patch fixes a problem with Menuconfig illegally allowing kernel
options to be set. Although the settings in question could be changed on
the menus, the changes were not saved.

The kernel version being configured will now be displayed in the title
line.


Linus, please add this to any forthcoming 2.0 and 2.1 patches.


...........................................................................

--- linux/scripts/Menuconfig-2.0.23 Sun Sep 15 23:25:49 1996
+++ linux/scripts/Menuconfig Fri Oct 25 16:47:52 1996
@@ -860,11 +860,11 @@

#
# Load config options from a file.
-# Converts all "# OPTION is not set" lines to "OPTION=" lines
+# Converts all "# OPTION is not set" lines to "OPTION=n" lines
#
function load_config_file () {
awk '
- /# .* is not set.*/ { printf("%s=\n", $2) }
+ /# .* is not set.*/ { printf("%s=n\n", $2) }
! /# .* is not set.*/ { print }
' $1 >.tmpconfig

@@ -1119,12 +1119,12 @@
Please enter a hexadecimal value. \
Use the <TAB> key to move from the input field to the buttons below it."

-backtitle="Linux Kernel Configuration"
-
DIALOG="./scripts/lxdialog/lxdialog"

kernel_version="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}"

+backtitle="Linux Kernel v$kernel_version Configuration"
+
trap "cleanup ; rm -f .menuconfig ; exit 1" 1 2 15


@@ -1146,7 +1146,7 @@
echo "#"
echo "# Using defaults found in" $DEFAULTS
echo "#"
- . $DEFAULTS
+ load_config_file $DEFAULTS
else
echo "#"
echo "# No defaults found"


__
William E. Roadcap mailto:roadcapw@cfw.com
TITUS Software ftp://titus.cfw.com/pub
Waynesboro, Va (USA) http://www.cfw.com/~roadcapw


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.109 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site