add protection against running cf2nand from yaffs2
[openwrt.git] / package / base-files / default / etc / functions.sh
index 2abb6f8..bf87548 100755 (executable)
@@ -110,3 +110,10 @@ include() {
                . $file
        done
 }
                . $file
        done
 }
+
+find_mtd_part() {
+       local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
+       PART="${PART##mtd}"
+       echo "${PART:+/dev/mtdblock/$PART}"
+}
+
This page took 0.019362 seconds and 4 git commands to generate.