Hi everyone, I have a question about the ifup wan command that I use to reactivate the wan. In the scheduled task I have set an activity that at a certain time executes the ifup wan command for example
00 08 * * * ifup wan
So every day at 8 in the morning this command is activated. Now the question is the following: Is it possible to make the ifup wan command instead of being executed at a specific time be executed in a random time window for example between 8 and 8.30? If it is possible how should it be written? Thanks.
Try micron package. It takes things like @weekly etc. not anacron but at least
something.
Probably you can detect a hotplug event or reduce lease time to make it relevant event driven.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Hi, maybe I'm lost but I just need to know if it is possible to set a time window instead of a fixed time with the ifup command. Why do I need the output? The router and the ifup command works correctly at the fixed time set. T
Just write a simple script that sleeps for random number of minutes and then calls ifup. Rather than have cron call ifup, instead have cron call your script.