From d2243a0912bbad57b1b413f2c15599341cb2aa76 Mon Sep 17 00:00:00 2001 From: Chaitanya Vadrevu Date: Tue, 18 Aug 2020 02:01:01 -0500 Subject: 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 --- etc/rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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= -- cgit v1.2.1