aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-11-01 14:03:42 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-11-01 18:01:02 +0000
commit73657dfbdd79e8cbafa218f8d04ceefad7b63404 (patch)
treecf2a4a47eb25aa3491154d1dc02881c18f27cbf1 /package/base-files
parentb0703590359b876228d4603ca75af82ba87a6f5b (diff)
downloadupstream-73657dfbdd79e8cbafa218f8d04ceefad7b63404.tar.gz
upstream-73657dfbdd79e8cbafa218f8d04ceefad7b63404.tar.bz2
upstream-73657dfbdd79e8cbafa218f8d04ceefad7b63404.zip
base-files: drop get_partition_by_name shell function
find_mmc_part provides a better alternative and all users of get_partition_by_name have been removed. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index 2b152a3dfa..ec198b2375 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -220,15 +220,6 @@ hex_le32_to_cpu() {
echo "$@"
}
-get_partition_by_name() {
- for partname in /sys/class/block/$1/*/name; do
- [ "$(cat ${partname})" = "$2" ] && {
- basename ${partname%%/name}
- break
- }
- done
-}
-
get_partitions() { # <device> <filename>
local disk="$1"
local filename="$2"