summaryrefslogtreecommitdiffstats
path: root/busybox.pkg
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-13 23:40:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2014-03-13 23:40:07 (EDT)
commit03fa1b027e4d92df4be3b5d1cca5bae38ba19707 (patch)
tree64aa07a4d3379f1de439ace63abd1abdffb4333e /busybox.pkg
parentc007674154570c98c5fd36868af2d346a4c6e0e9 (diff)
Fix grep commands in init scripts.
The exit status of a pipeline is the exit status of the last command in the pipeline. If the last command is ":", the exit status will always be 0, regardless of whether grep finds the specified pattern. So just use grep's -q command. According to the documentation for GNU grep, some older grep implementations lacked this option. But we're only running these scripts on BusyBox grep, which unconditionally includes this option.
Diffstat (limited to 'busybox.pkg')
0 files changed, 0 insertions, 0 deletions