X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Flib%2Fpreinit%2F10_check_for_mtd;h=66f185e1af2b7f2a97c96fc5b4e3bd63f8f92f85;hb=c76c2b27fda2a82c6532f6af75ad474d2f7d38e6;hp=e1f3c07a2a55f00788eea51adb4507d80d6f63e2;hpb=a9929695c6ad0779eaa8cb3d68d37760981d55b7;p=openwrt.git 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 e1f3c07a2a..66f185e1af 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 } }