Whoops on that Menuconfig patch

Derrik Pates (dpates@gatsby.dsdk12.net)
Tue, 5 Jan 1999 23:47:14 -0700 (MST)


I forgot to mention that that patch I sent was against 2.2.0pre4ac1. I'm
attaching a new patch, against 2.2.0pre4ac4.

Derrik Pates
dpates@dsdk12.net

----- Patch below -----

--- linux/scripts/Menuconfig.orig Tue Jan 5 23:29:16 1999
+++ linux/scripts/Menuconfig Tue Jan 5 23:36:18 1999
@@ -185,12 +185,30 @@
# else in the kernel.
#
function dep_tristate () {
- if [ "$3" = "y" ]; then
- tristate "$1" "$2"
- else if [ "$3" = "m" ]; then
- mod_bool "$1" "$2"
+ NAME=$1
+ TAG=$2
+ MODONLY=N
+ DISABLE=N
+
+ while [ "$3" != "" ]
+ do
+ if [ "_$3" = "_m" ]
+ then
+ MODONLY=Y
+ fi
+ if [ "_$3" = "_n" ]
+ then
+ DISABLE=Y
+ fi
+ shift
+ done
+
+ if [ "$DISABLE" = "Y" ]; then
+ define_bool "$TAG" "$n"
+ else if [ "$MODONLY" = "Y" ]; then
+ mod_bool "$NAME" "$TAG"
else
- define_bool "$2" "$n"
+ tristate "$NAME" "$TAG"
fi; fi
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/