mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-22 13:38:52 +00:00
sync the author code
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user