X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a9929695c6ad0779eaa8cb3d68d37760981d55b7..293671d95220f0d12a9f3194e54e271d51191f08:/package/base-files/files/lib/preinit/50_choose_console diff --git a/package/base-files/files/lib/preinit/50_choose_console b/package/base-files/files/lib/preinit/50_choose_console index 346479640..ecbc2eaf4 100644 --- a/package/base-files/files/lib/preinit/50_choose_console +++ b/package/base-files/files/lib/preinit/50_choose_console @@ -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