[ar71xx] fix dir-825-b1 default network config after r21905
[openwrt.git] / package / base-files / files / lib / functions / boot.sh
index e6f6633..f93eec9 100644 (file)
@@ -32,6 +32,7 @@ find_mtd_part() {
 
 jffs2_ready () {
     mtdpart="$(find_mtd_part rootfs_data)"
+    [ -z "$mtdpart" ] && return 1
     magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
     [ "$magic" != "deadc0de" ]
 }
This page took 0.02772 seconds and 4 git commands to generate.