summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit/10_check_for_mtd
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/lib/preinit/10_check_for_mtd')
-rw-r--r--package/base-files/files/lib/preinit/10_check_for_mtd2
1 files changed, 1 insertions, 1 deletions
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
}
}