mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-22 05:32:07 +00:00
24 lines
390 B
Bash
Executable File
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
|