[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 / 10_check_for_mtd
index e1f3c07a2a55f00788eea51adb4507d80d6f63e2..66f185e1af2b7f2a97c96fc5b4e3bd63f8f92f85 100644 (file)
@@ -10,7 +10,7 @@ mount_no_mtd() {
 
 check_for_mtd() {
     check_skip || {
-       grep rootfs_data /proc/mtd >/dev/null 2>/dev/null || {
+       grep -qs rootfs_data /proc/mtd || {
            mount_no_mtd && pi_mount_skip_next=true
        }
     }