After a few upgrades, it started to annoy me that some configs are overwritten, causing SSH or the web URL to break and/or not accessible.
So I made a small script, that should be placed in /etc/inittab which will be executed on every restart.
You can find the script here: https://github.com/aalwash/toon-hacking
The bash script is really simple:
- Check if SSH is commented in /etc/default/iptables.conf, if so, remove the comment and restart iptable
- Check if hdrz_zwave is inside /HCBv2/etc/qmf_release.conf, if so, replace with /HCBv2/www and disbable whitelist and kill lighthttpd