I am running into a problem where I can no longer reboot normally my router... This means, pressing the Luci reboot button or ssh command reboot will have no action on my router.
I can only reboot with command: reboot -f
which generates random memory issues in the next boot...
What is causing it?
I think (cus when I deactivate the issue is no longer there) that the modification that causes this is when I add the Wake up on LAN script (you can find it in the documentation https://wiki.openwrt.org/doc/howto/auto_wake_on_lan ) on the local startup scripts.
And my guesses are that what causes it, is the part of the script that states:
while sleep $INTERVAL; do
wake_up $PORT $TARGET $INTERFACE $MAC;
done
any ideas how I can fix this? or what is actually causing it?
Sounds pretty crazy that the referenced script logs into flash every five seconds But that is just wiki advice...
It might make sense to run the periodic check script from a detached shell, so that it would certainly not block any further script evaluation. E.g like this: ( /path-to-script/script.sh )&
Correct, interval is 5 (as the documentation suggests)...
the router well its not an old one and should be ok ish : Linksys WRT 1900AC
but I do agree that quite CPU/flash consuming...
I will try moving to a higher interval... and put the longs on tmp...
then Ill check to detached shell... (don't know how to do that ^^ at automatic launch)
And hopefully something will work (without getting rid of it :-p )