Some CPH devices have two matches. Take first one
This commit is contained in:
parent
b07cbb9e07
commit
f620ffc0a8
@ -164,7 +164,7 @@ mount -o remount,ro / || true
|
|||||||
|
|
||||||
for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do
|
for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do
|
||||||
if [ -b "$part" ];then
|
if [ -b "$part" ];then
|
||||||
oppoName="$(grep -aohE '(RMX|CPH)[0-9]{4}' "$part")"
|
oppoName="$(grep -aohE '(RMX|CPH)[0-9]{4}' "$part" |head -n 1)"
|
||||||
if [ -n "$oppoName" ];then
|
if [ -n "$oppoName" ];then
|
||||||
setprop ro.build.overlay.deviceid "$oppoName"
|
setprop ro.build.overlay.deviceid "$oppoName"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user