Maverickcdn
Senior Member
wan0_bound.env comes from dhcpc IIRC.
I don't have /tmp/WAN0_state on my router.
Still on the right track then, I stumbled on that haphazardly somehow
Thanks, I run the strings through a loop for terminal messages and falling back through the 4 search methods, but I got to learn about substr, I may have a use for it if I can experiment with it morewanup_date="$(cat $infile | awk '/Initial clock set|WAN was restored/ {a=$0} END{print substr (a,1,15)}')"
wanup_secs="$(/bin/date --date="$wanup_date" -D '%b %e %T' +'%s')"
Hows your luck using date to convert a date/time to another TZ? In all my tests it seems this busybox date doesnt support it