X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a9929695c6ad0779eaa8cb3d68d37760981d55b7..cee93be0172ec5e7bc775c0e2736a2b2fe27ff79:/package/base-files/files/lib/preinit/10_check_for_mtd diff --git a/package/base-files/files/lib/preinit/10_check_for_mtd b/package/base-files/files/lib/preinit/10_check_for_mtd index e1f3c07a2..66f185e1a 100644 --- a/package/base-files/files/lib/preinit/10_check_for_mtd +++ b/package/base-files/files/lib/preinit/10_check_for_mtd @@ -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 } }