diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-08 21:17:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-08 21:17:49 +0000 |
commit | dd58e15b84c0437ea4b06af4df3cc43b53b67228 (patch) | |
tree | 917dd64bf6eb5589c5549ed07867d5059c3bbcb5 /package/base-files/files/lib/functions/system.sh | |
parent | e99cfaaf953bb921c538d1531ba950ff6bc35a0b (diff) | |
download | upstream-dd58e15b84c0437ea4b06af4df3cc43b53b67228.tar.gz upstream-dd58e15b84c0437ea4b06af4df3cc43b53b67228.tar.bz2 upstream-dd58e15b84c0437ea4b06af4df3cc43b53b67228.zip |
base-files: add back missing function for find_mtd_part to /lib/functions.sh (fixes #15496)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40426
Diffstat (limited to 'package/base-files/files/lib/functions/system.sh')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index 7655460159..a4c0f2620c 100644 --- a/package/base-files/files/lib/functions/system.sh +++ b/package/base-files/files/lib/functions/system.sh @@ -1,12 +1,5 @@ # Copyright (C) 2006-2013 OpenWrt.org -find_mtd_index() { - local PART="$(grep "\"$1\"" /proc/mtd | awk -F: '{print $1}')" - local INDEX="${PART##mtd}" - - echo ${INDEX} -} - find_mtd_chardev() { local INDEX=$(find_mtd_index "$1") local PREFIX=/dev/mtd |