diff options
author | Chaitanya Vadrevu <chaitanya973@gmail.com> | 2020-08-18 02:01:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 09:01:01 +0200 |
commit | d2243a0912bbad57b1b413f2c15599341cb2aa76 (patch) | |
tree | f8621670f3ceb9428211b4d390c849295bf497c7 /etc | |
parent | 1ec2149386beca68792496b600a5cf71f4a36709 (diff) | |
download | initscripts-d2243a0912bbad57b1b413f2c15599341cb2aa76.tar initscripts-d2243a0912bbad57b1b413f2c15599341cb2aa76.tar.gz initscripts-d2243a0912bbad57b1b413f2c15599341cb2aa76.tar.bz2 initscripts-d2243a0912bbad57b1b413f2c15599341cb2aa76.tar.xz initscripts-d2243a0912bbad57b1b413f2c15599341cb2aa76.zip |
rc.d/functions: replace grep's --quiet with -q
Some versions of grep (like busybox's) do not support --quiet.
So use -q instead like in the rest of the file.
Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@ni.com>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/init.d/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/init.d/functions b/etc/rc.d/init.d/functions index 9e33ee06..0c2bda66 100644 --- a/etc/rc.d/init.d/functions +++ b/etc/rc.d/init.d/functions @@ -86,7 +86,7 @@ if [ -z "${BOOTUP:-}" ]; then # NOTE: /dev/ttyS* is serial console. "not a tty" is such as # /dev/null associated when executed under systemd service units. - if LANG=C tty | grep --quiet -e '\(/dev/ttyS\|not a tty\)'; then + if LANG=C tty | grep -q -e '\(/dev/ttyS\|not a tty\)'; then BOOTUP=serial MOVE_TO_COL= SETCOLOR_SUCCESS= |