remove function find_mtd_part() from /lib/functions.sh
[openwrt/openwrt.git] / package / base-files / files / lib / functions.sh
index b3a3885f2d62c0e6ad182351e60a50a25b507047..2ed353b2a56075003ea909eeb10a8fdf36106f28 100755 (executable)
@@ -220,15 +220,6 @@ include() {
        done
 }
 
-find_mtd_part() {
-       local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')"
-       local PREFIX=/dev/mtdblock
-
-       PART="${PART##mtd}"
-       [ -d /dev/mtdblock ] && PREFIX=/dev/mtdblock/
-       echo "${PART:+$PREFIX$PART}"
-}
-
 strtok() { # <string> { <variable> [<separator>] ... }
        local tmp
        local val="$1"