summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/sbin/mount_root
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/sbin/mount_root')
-rwxr-xr-xpackage/base-files/default/sbin/mount_root2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/default/sbin/mount_root b/package/base-files/default/sbin/mount_root
index ae78ee488..32a6ee548 100755
--- a/package/base-files/default/sbin/mount_root
+++ b/package/base-files/default/sbin/mount_root
@@ -4,7 +4,7 @@ if [ "$1" != "failsafe" ]; then
mount | grep jffs2 >&-
if [ $? = 0 ] ; then
if [ $(cat /proc/mtd | wc -l) = 6 ]; then
- echo 5 > /proc/sys/diag
+ [ -f /proc/sys/diag ] && echo 5 > /proc/sys/diag
mtd unlock linux
mtd erase OpenWrt
jffs2root --move