[package] base-files: preinit: get rid of /dev/null redirections and use grep -q...
[openwrt-10.03/.git] / package / base-files / files / lib / preinit / 30_device_fs_daemons
index 5a3aaf3d6477c07a0db59ca5601d0ae3fa4a081e..5b3e2ad00021c30de3291a79bf22e367eb807a41 100644 (file)
@@ -23,7 +23,7 @@ init_udev() {
 
 init_device_fs() {
     HOTPLUG=
-    if grep devfs /proc/filesystems > /dev/null; then
+    if grep -q devfs /proc/filesystems; then
        init_devfs
     elif [ -x /sbin/hotplug2 ]; then
        init_hotplug2