Files
revanced-apk-build/module/action.sh
T
2026-07-21 11:01:29 +07:00

24 lines
390 B
Bash
Executable File

#!/system/bin/sh
MODDIR=${0%/*}
. "$MODDIR/utils.sh"
DFILE="$MODDIR/disabled_by_action"
if [ -z "$(get_mounts)" ]; then
rm -f "$DFILE"
if mount_nosleep; then
echo "* Enabled successfully"
cp -f "$MODDIR/module.prop.orig" "$MODDIR/module.prop"
else
echo "* Failed"
fi
echo ""
get_mounts
else
touch "$DFILE"
umount_all
echo "* Disabled"
ch_desc "⛔ Disabled by action"
fi