Skip to contentSkip to conversation

compat: make driver-select only select complete lines

PATCH Applied Johannes Berg 2 participants 2 messages Oct 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: make driver-select only select complete lines

From: Johannes Berg <[email protected]>

Otherwise we end up enabling CONFIG_FOOBAR if
only CONFIG_FOO is requested.

scripts/driver-select +1 -1
@@ -88,7 +88,7 @@ function disable_makefile
 function select_driver 
 {
 	backup_file $DRIVERS_MAKEFILE
-	perl -i -ne 'print if /'$1'/ ' $DRIVERS_MAKEFILE
+	perl -i -ne 'print if /'$1'\)/ ' $DRIVERS_MAKEFILE
 }
 
 function select_drivers