Last active
December 28, 2025 19:46
-
-
Save OneCDOnly/5dfe829f2efd4960e15a5892cb7e5b5c to your computer and use it in GitHub Desktop.
uninstall Malware Remover, and prevent it being installed again during this OS session.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| tab_pathfile=/etc/config/crontab | |
| conf_pathfile=/etc/config/qpkg.conf | |
| uninstall_pathfile=$(getcfg MalwareRemover Install_Path -f $conf_pathfile)/.uninstall.sh | |
| if ! grep malware_remover_install.lck $tab_pathfile &> /dev/null; then | |
| echo '*/2 * * * * /bin/touch /var/lock/malware_remover_install.lck' >> $tab_pathfile | |
| crontab $tab_pathfile && /etc/init.d/crond.sh restart | |
| fi | |
| if [[ -f $uninstall_pathfile ]]; then | |
| setcfg MalwareRemover Sys_App 1 -f $conf_pathfile | |
| eval "$uninstall_pathfile" | |
| rmcfg MalwareRemover -f $conf_pathfile | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use with RunLast for fully automated MR installation prevention.