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
20 lines
650 B
Bash
20 lines
650 B
Bash
MODDIR=${0%/*}
|
|
COMPATH="$MODDIR/common"
|
|
TS="/data/adb/modules/tricky_store"
|
|
|
|
if [ ! -f "$COMPATH/ninstalled" ] || [ ! -f "$COMPATH/disabled" ] || [ ! -f "$COMPATH/normal" ]; then
|
|
sed -i 's/^description=.*/description=Module is corrupted, please reinstall module./' "$MODDIR/module.prop"
|
|
abort
|
|
fi
|
|
|
|
if [ ! -d "$TS" ]; then
|
|
cat "$COMPATH/ninstalled" > "$MODDIR/module.prop"
|
|
elif [ -f "$TS/disable" ]; then
|
|
cat "$COMPATH/disabled" > "$MODDIR/module.prop"
|
|
else
|
|
cat "$COMPATH/normal" > "$MODDIR/module.prop"
|
|
until [ "$(getprop sys.boot_completed)" = "1" ]; do
|
|
sleep 1
|
|
done
|
|
. "$COMPATH/common/UpdateTargetList.sh"
|
|
fi |