Remove module if tricky store uninstalled

This commit is contained in:
KOWX712
2024-12-03 19:59:04 +08:00
parent 8f6dc6523d
commit b06ffda6bf
5 changed files with 48 additions and 61 deletions

17
module/post-fs-data.sh Normal file
View File

@@ -0,0 +1,17 @@
MODPATH=${0%/*}
TS="/data/adb/modules/tricky_store"
while [ -z "$(ls -A /data/adb/modules/)" ]; do
sleep 1
done
if [ ! -d "$TS" ] || [ -f "$TS/remove" ]; then
if [ -d "$MODPATH/common/temp" ]; then
mkdir -p "/data/adb/modules/TA_utl"
cp -rf "$MODPATH/common/temp"/* "/data/adb/modules/TA_utl/"
touch "/data/adb/modules/TA_utl/remove"
else
touch "$MODPATH/remove"
fi
exit 1
fi