[Pkg-sysvinit-devel] Bug#734901: Bug#734901: initscripts: More Proper Detection of "fastboot" Kernel Parameter

Sebastian Steinhuber sebastian.steinhuber at googlemail.com
Thu Jan 16 05:25:56 UTC 2014


I got it now, confused I was.
Grep is not the culprit.


FWIW, grep -s -i -E (\t|\s)fastboot($|\t|\s)'
should be just fine.

printf ' i915.fastboot=1' | grep -s -i -E '(\t|\s)fastboot($|\t|\s)'
echo $?
1

$ printf ' fastboot' | grep -s -i -E (\t|\s)fastboot($|\t|\s)'
  fastboot

$ printf ' fastboot ' | grep -s -i -E (\t|\s)fastboot($|\t|\s)'
  fastboot



More information about the Pkg-sysvinit-devel mailing list