urain39 / MzFoxRestoreTemplate

MzFox精简计划恢复模板
0 stars 0 forks source link

Optimize: use another way to detect bootdevice directory #5

Closed urain39 closed 4 years ago

urain39 commented 4 years ago
ln -sv $(find /dev/block/platform -name 'by-name' -type d \
    | sed 's/\/by-name$//') \
        /dev/block/bootdevice || exit 33

https://github.com/urain39/MzFoxRestoreTemplate/blob/607758611ae9e3cf5fd5b682806795a6ce0325e6/src/META-INF/com/google/android/update-binary#L50