[package] base-files: preinit: get rid of /dev/null redirections and use grep -q...
[openwrt/svn-archive/archive.git] / package / base-files / files / lib / preinit / 50_choose_console
index 346479640e9d8efa4d10c59b5b81a70f2f1a4374..ecbc2eaf42b47284bade3e0090563fe7bd4ff0a3 100644 (file)
@@ -7,7 +7,7 @@ choose_console() {
     # that's why we use /dev/pty/m0 and m1 (or equivalent) as replacement
     # for /dev/console if there's no serial console available
 
-    if grep devfs /proc/filesystems > /dev/null; then
+    if grep -q devfs /proc/filesystems; then
        M0=/dev/pty/m0
        M1=/dev/pty/m1
        M2=/dev/pty/m1