aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2012-12-12 12:38:31 +0000
committerMirko Vogt <mirko@openwrt.org>2012-12-12 12:38:31 +0000
commit1521cdda0fcdcdecf98b5016ee55f9da1e306279 (patch)
tree1f55c69aa7b3e232f0b2d712de12434eb13772c4 /package/base-files/files/lib
parenteece71be5620168afd4474f638cbcc16e48f5f13 (diff)
downloadupstream-1521cdda0fcdcdecf98b5016ee55f9da1e306279.tar.gz
upstream-1521cdda0fcdcdecf98b5016ee55f9da1e306279.tar.bz2
upstream-1521cdda0fcdcdecf98b5016ee55f9da1e306279.zip
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. SVN-Revision: 34641
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh9
1 files changed, 0 insertions, 9 deletions
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() { # <string> { <variable> [<separator>] ... }
local tmp
local val="$1"