From: mirko Date: Wed, 12 Dec 2012 12:38:31 +0000 (+0000) Subject: remove function find_mtd_part() from /lib/functions.sh X-Git-Tag: fast2504n-3.10.28-merged~4141 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=877ab89dabc3819bccbb1ccf87e9b1efec6e2cb9;p=openwrt.git remove function find_mtd_part() from /lib/functions.sh Since all scripts using this function include /lib/functions/boot.sh - where this function is defined as well - it can be dropped from /lib/functions.sh. Also avoids further confusion about this function being declared and defined in two different places. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34641 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index b3a3885f2d..2ed353b2a5 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -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() { # { [] ... } local tmp local val="$1"