Fix kernel configuration editing script snippets

svn path=/nixpkgs/trunk/; revision=17053
This commit is contained in:
Michael Raskin 2009-09-11 13:59:32 +00:00
parent e1faa9650d
commit 7cc0f07690

View File

@ -23,13 +23,13 @@ in
preConfigure = '' preConfigure = ''
killOption () { killOption () {
sed -re "s/$1=[ym]/# $1 is not set" -i .config sed -re "s/$1=[ym]/# $1 is not set/" -i .config
} }
setOptionMod () { setOptionMod () {
sed -re "s/# $1 is not set/$1=m" -i .config sed -re "s/# $1 is not set/$1=m/" -i .config
} }
setOptionYes () { setOptionYes () {
sed -re "s/# $1 is not set/$1=y" -i .config sed -re "s/# $1 is not set/$1=y/" -i .config
} }
make allmodconfig make allmodconfig