diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-01 00:32:46 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-01 00:32:46 +0000 |
commit | 8a51d0046eedcaa9418e222d37bca323c8dadfbb (patch) | |
tree | fd81d85e0fa1de1b2b06e713e3c175c10ef5edc2 /package/base-files/files/lib/preinit/50_choose_console | |
parent | 90b4fa219447dc710b81c7b35706176c83fb4dbb (diff) |
[package] base-files: preinit: get rid of /dev/null redirections and use grep -q where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19478 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/preinit/50_choose_console')
-rw-r--r-- | package/base-files/files/lib/preinit/50_choose_console | 2 |
1 files changed, 1 insertions, 1 deletions
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 |