What's new

[HELP] Asuswrt-Merlin, services-start script not working after hard reboot

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Cigaras

Occasional Visitor
I have latest Merlins firmaware on my RT-N66U and I need to restart udpxy service with different parameters when router reboots, so I created file /jffs/scripts/services-start with this content:

Code:
#!/bin/sh
killall udpxy
udpxy -m eth0 -p 4000

And it works if I initiate reboot in router configuration panel, like a soft reboot, but if I do it the hard way, by physicaly pushing power button on the router, script doesn't work or gets overwriten and udpxy runs with default parameters.

Please help me, don't know what to do.
 
Try to put a 10 seconds delay
Code:
#!/bin/sh
sleep 10
killall udpxy
udpxy -m eth0 -p 4000
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top