rayhunter icon indicating copy to clipboard operation
rayhunter copied to clipboard

Rayhunter doesn't start on boot (m7350 v5)

Open monokroki2 opened this issue 7 months ago • 2 comments

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


monokroki2 avatar May 23 '25 13:05 monokroki2

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.

untitaker avatar May 23 '25 20:05 untitaker

might be fixed by #328

untitaker avatar May 29 '25 20:05 untitaker

please ping if still an issue. i believe bootup issues are addressed now and all known hw versions work except for v4.

untitaker avatar Jun 04 '25 20:06 untitaker

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 avatar Jun 14 '25 13:06 guillaumedsde

@guillaumedsde if you look into the tplink admin ui, and go to settings, what port triggers do you have configured?

untitaker avatar Jun 14 '25 13:06 untitaker

@guillaumedsde if you look into the tplink admin ui, and go to settings, what port triggers do you have configured?

I have the following:

Image

The settings were the same right after running the install script and running update-rc.d rayhunter_daemon defaults

guillaumedsde avatar Jun 14 '25 15:06 guillaumedsde

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?

untitaker avatar Jun 14 '25 15:06 untitaker

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?

guillaumedsde avatar Jun 14 '25 15:06 guillaumedsde

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

untitaker avatar Jun 14 '25 15:06 untitaker

I ran the uninstallation instructions, rebooted (the uninstall worked), then ran the installer again which worked on the first attempt (with an sdcard inserted)

guillaumedsde avatar Jun 14 '25 17:06 guillaumedsde