thelonelycoder
Part of the Furniture
I was toying with two things yesterday. Adding a swap file as you suggest or monitoring RAM usage when the script is run.I did my own workaround, which could be incorporated as an option in ABS.
My question still remains if there's an option anywhere or a way to turn off autoupdate? As it runs of out memory every time I have to repeat the steps above manually each week.
- dd if=/dev/zero of=./swapfile bs=1k count=256000
- mkswap swapfile
- swapon swapfile
- Run the update from within ab-solution.sh
- swapoff -a
Both are very intrusive and add unnecessary complexity to AB I feel I don't want to handle. AB is complex enough as it is at the moment.
I consider a break down of the way I sort the file, maybe make it a two file sort and then combine.
This is added to the to do list for the coming update.
No, updating the hosts files on a weekly basis is an integral part of my ad-blocker and makes it so successful.My question still remains if there's an option anywhere or a way to turn off autoupdate? As it runs of out memory every time I have to repeat the steps above manually each week.
You could delete the cron job, but be aware that whenever you start the AB UI this job will be added back silently. Also, if dnsmasq restarts for other reasons it will be re-added.
You best wait for what I come up with for the sort function in the updated update-hosts.add.