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
update service.sh
This commit is contained in:
@@ -1,18 +1,15 @@
|
|||||||
MODDIR=${0%/*}
|
MODDIR=${0%/*}
|
||||||
COMPATH="$MODDIR/common"
|
COMPATH="$MODDIR/common"
|
||||||
# Check pm command functionality
|
|
||||||
sleep 10
|
|
||||||
until pm list packages > /dev/null 2>&1; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
# Check tricky store status
|
|
||||||
TS="/data/adb/modules/tricky_store"
|
TS="/data/adb/modules/tricky_store"
|
||||||
if [ -f "$TS/disable" ]; then
|
|
||||||
cat "$COMPATH/disabled" > "$MODDIR/module.prop"
|
if [ ! -d "$TS" ]; then
|
||||||
elif [ ! -d "$TS" ]; then
|
|
||||||
cat "$COMPATH/ninstalled" > "$MODDIR/module.prop"
|
cat "$COMPATH/ninstalled" > "$MODDIR/module.prop"
|
||||||
|
elif [ -f "$TS/disable" ]; then
|
||||||
|
cat "$COMPATH/disabled" > "$MODDIR/module.prop"
|
||||||
else
|
else
|
||||||
cat "$COMPATH/normal" > "$MODDIR/module.prop"
|
cat "$COMPATH/normal" > "$MODDIR/module.prop"
|
||||||
sh "$MODDIR"/common/UpdateTargetList.sh || true
|
until [ "$(getprop sys.boot_completed)" = "1" ]; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
. "$COMPATH/common/UpdateTargetList.sh"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user