What's new

What is the earliest script where the LAN (not WAN) will be up?

  • 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!

cmkelley

Very Senior Member
I have a separate time server on my network so if the LAN comes up before the WAN I can update the time from it at the earliest opportunity. I've read https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts, but it doesn't really say which of those is "first". It's got a static IP so I don't need any DNS services.

Does the LAN even come up before the WAN? Is a loop in init-start the best way?
 
I wouldn’t go with a blocking loop (as there is a 120 second execution time limit on the start scripts), but a forked/demonised script spawned from init is probably your best bet.


Sent from my iPhone using Tapatalk
 
I have a separate time server on my network so if the LAN comes up before the WAN I can update the time from it at the earliest opportunity. I've read https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts, but it doesn't really say which of those is "first". It's got a static IP so I don't need any DNS services.

Does the LAN even come up before the WAN? Is a loop in init-start the best way?
The earliest script called is init-start but even though it executes early it may not be early enough.
 
The earliest script called is init-start but even though it executes early it may not be early enough.
As far as I can tell, the LAN is not up when init-start runs. Judging by the fact that there is a wan-start script, the WAN isn't.
 

Similar threads

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