[twrp] Support Samsung partitions

This commit is contained in:
Pierre-Hugues Husson 2018-07-23 22:16:46 +02:00
parent 425290a949
commit 6b9cb2af4d

View File

@ -116,7 +116,8 @@ death() {
dev="$(sed -n 1p /cache/phh/block.map)" dev="$(sed -n 1p /cache/phh/block.map)"
devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)userdata;\1;p')" devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)userdata;\1;p')"
[ -z "$devbase" ] && devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)data;\1;p')" [ -z "$devbase" ] && devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)data;\1;p')"
for i in system system_a;do [ -z "$devbase" ] && devbase="$(echo $dev | sed -nE 's;(/dev/block/.*/)USERDATA;\1;p')"
for i in system system_a SYSTEM;do
v="$devbase/$i" v="$devbase/$i"
[ -b "$v" ] && system="$v" [ -b "$v" ] && system="$v"
done done