patch-1.3.72 linux/scripts/Menuconfig
Next file: linux/scripts/README.Menuconfig
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
Fri Mar 8 08:59:12 1996
- Orig file:
v1.3.71/linux/scripts/Menuconfig
- Orig date:
Tue Mar 5 10:11:16 1996
diff -u --recursive --new-file v1.3.71/linux/scripts/Menuconfig linux/scripts/Menuconfig
@@ -62,12 +62,12 @@
if [ -z "$text" ]
then
- echo "There is no help available for kernel option."
+ echo "There is no help available for this kernel option."
else
echo "$text"
fi
else
- echo "There is no help available for kernel option."
+ echo "There is no help available for this kernel option."
fi
}
@@ -75,8 +75,14 @@
# Activate a help dialog.
#
function help () {
- extract_help $1 >help.out
- $DIALOG --backtitle "$backtitle" --title "$2" --textbox help.out 20 75
+ if extract_help $1 >help.out
+ then
+ $DIALOG --backtitle "$backtitle" --title "$2"\
+ --textbox help.out 20 75
+ else
+ $DIALOG --backtitle "$backtitle" \
+ --textbox help.out 20 75
+ fi
rm help.out
}
@@ -669,16 +675,16 @@
function dep_tristate () {
eval x=\${$2:-n}
- if eval [ "_$3" != "_m" ]
+
+ if eval [ "_$3" = "_m" ]
then
- tristate "$1" "$2"
- else
if [ "$x" = "y" ]
then
x="m"
fi
- define_bool "$2" "$x"
fi
+
+ define_bool "$2" "$x"
}
function int () {
@@ -694,6 +700,8 @@
}
function define_bool () {
+ eval $1="$2"
+
case "$2" in
y)
echo "$1=y" >>$CONFIG
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this