You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Remove module if tricky store uninstalled
This commit is contained in:
17
module/post-fs-data.sh
Normal file
17
module/post-fs-data.sh
Normal 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
|
||||
Reference in New Issue
Block a user