compat-wireless: make driver-select only select complete lines
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Oct 2011 09:15:45 +0000 (11:15 +0200)
committerLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Thu, 6 Oct 2011 15:11:11 +0000 (08:11 -0700)
Otherwise we end up enabling CONFIG_FOOBAR if
only CONFIG_FOO is requested.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scripts/driver-select

index 35581123712d5e1737eaaf131db7cb951ad8d324..f5715190be19854c172bf4a3be57430f2735bfc9 100755 (executable)
@@ -86,7 +86,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