Addon.d V3

For seamless /product,/system_ext backup and restore

This reverts commit 416faab8e9460fcf2a91a6a7d716c148e45ccb87.
This commit is contained in:
Alessandro Astone 2020-12-26 23:03:09 +01:00
parent 8650488592
commit 55071e36c7
2 changed files with 5 additions and 10 deletions

View File

@ -1,6 +1,6 @@
#!/sbin/sh
#
# ADDOND_VERSION=2
# ADDOND_VERSION=3
#
# /system/addon.d/30-gapps.sh
#

View File

@ -24,16 +24,11 @@ case "$1" in
# Stub
;;
post-restore)
if [ -d "/postinstall" ]; then
P="/postinstall/system"
else
P="/system"
fi
for i in $(list_files); do
chown root:root "$P/$i"
chmod 644 "$P/$i"
chmod 755 "$(dirname "$P/$i")"
f=$(get_output_path "$S/$i")
chown root:root $f
chmod 644 $f
chmod 755 $(dirname $f)
done
;;
esac