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>
This commit is contained in:
parent
b070359035
commit
73657dfbdd
|
@ -220,15 +220,6 @@ hex_le32_to_cpu() {
|
||||||
echo "$@"
|
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>
|
get_partitions() { # <device> <filename>
|
||||||
local disk="$1"
|
local disk="$1"
|
||||||
local filename="$2"
|
local filename="$2"
|
||||||
|
|
Loading…
Reference in New Issue