Rayhunter doesn't start on boot (m7350 v5)
Rayhunter Version
V0.3.0
Capture Date
2025-05-23
Capture Location
South africa
Device and Model
M7350 v5
What happened?
On TP-Link M7350 v5, Rayhunter needs to be started manually after each reboot. Using a hacked lighttpd init script works, but a proper autostart solution would be better.
Expected behavior
Make it run on boot while installing rayhunter by the installer script
Relevant log output
just grabbed a v5.0 and could not repro it. there have been reports of update-rc.d not working properly on tplink, but it's working fine here.
if somebody else encounters this issue, please try to edit /etc/init.d/rayhunter_daemon to log to /tmp/rayhunter.log instead of /data/rayhunter/rayhunter.log. then reboot the device and see if this file exists and what it contains.
might be fixed by #328
please ping if still an issue. i believe bootup issues are addressed now and all known hw versions work except for v4.
Hi, I encountered this issue as well on a TP-link m7350 v8 unit with v0.3.4, /etc/init.d/rayhunter_daemon is present but it is not autostarted.
I managed to fix it by starting up a telnet shell and running the following command to autostart the service:
update-rc.d rayhunter_daemon defaults
Rebooting the unit afterwards starts up the service as expected.
@guillaumedsde if you look into the tplink admin ui, and go to settings, what port triggers do you have configured?
@guillaumedsde if you look into the tplink admin ui, and go to settings, what port triggers do you have configured?
I have the following:
The settings were the same right after running the install script and running update-rc.d rayhunter_daemon defaults
so I think that if you clear them entirely and rerun the installer, then auto starting using update-rc.d should not be necessary. but either way works. did you run older versions of the installer on this device before?
No I hadn't run a previous installer on this device.
I just recalled however that I ran the installer once without an sdcard, it suggested inserting one which I did, then I re-ran the installer again after which I noticed the service did not start. This initial install without the sdcard might be might this happened?
not 100% sure, but can you follow the uninstallation instructions here: https://efforg.github.io/rayhunter/uninstalling.html#tplink
then re-run the installer and see if rayhunter autostarts correctly
just for my curiosity
I ran the uninstallation instructions, rebooted (the uninstall worked), then ran the installer again which worked on the first attempt (with an sdcard inserted)