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:
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.
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.