Is it possible in Hijack to detect when the network interface is available and run a command at that time? I don't mind if I have to put a script in a /usr/local/etc/net-up.d directory or name it in the config.ini or anything else reasonable.
The reason I ask is that my player's clock gains seconds per day, and I want to run ntpdate whenever I boot with Ethernet plugged in. I tried writing
[hijack]
;@AC ;@EXEC /usr/local/bin/ntpdate -b timeserver
where
timeserver is a machine with an NTP server, but this fails because my player is on DHCP and so has no network address until after the player has started:
8 Apr 17:05:57 ntpdate[10]: sendto(10.70.x.x): Network is unreachable
8 Apr 17:05:58 ntpdate[10]: sendto(10.70.x.x): Network is unreachable
8 Apr 17:05:59 ntpdate[10]: sendto(10.70.x.x): Network is unreachable
8 Apr 17:06:00 ntpdate[10]: sendto(10.70.x.x): Network is unreachable
8 Apr 17:06:01 ntpdate[1hijack_exec("/usr/local/bin/ntpdate -b 10.70.x.x"), rc=1 (ERROR)
I guess I could read up on binding commands to the Hijack menu, but then I'd have to manually invoke it every time, rather than it happening automatically.
Incidentally, couldn't find anything on EXEC/EXEC_ONCE in the Hijack FAQ - I think it's probably stable enough now, Loren?