Last active
January 10, 2026 22:09
-
-
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 | |
| conf_pathfile=/etc/config/qpkg.conf | |
| lock_pathfile=/var/lock/malware_remover_install.lck | |
| tab_pathfile=/etc/config/crontab | |
| uninstall_pathfile=$(getcfg MalwareRemover Install_Path -f $conf_pathfile)/.uninstall.sh | |
| if ! grep $lock_pathfile $tab_pathfile &> /dev/null; then | |
| echo "*/2 * * * * /bin/touch $lock_pathfile" >> $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.