Background: I want my notebook to be able to *not* get stuck at bootup with dhcp's "press enter..." and to do dhcpstrt if there is a cable attached... Any ideas?
TIA
Thomas
On that note, dhcpstrt supposedly has a timeout parameter and flag for error suppression.
In \mptn\bin\setup.cmd should be the dhcpstrt line. Adding a -d
<sec> (for instance: -d 20)
Now... supposedly, to suppress the "Enter" message, one sets the d value to 0 (zero). In this fashion (assuming lan0):
dhcpstart -i lan0 -d 0 (the values for this paramter are 0-60)That will force DHCPStrt to immediately change to "background mode" and not try during the boot process, which
supposedly* alleviates the "Press Enter" message on failed DHCP setup. I have no idea how long it keeps trying in background mode though... forever?
* I have not tried it, so I do not know if it works. Another suggestion I saw (to suppress the message) did not work, so I wont post it here.At that point, one can have a script or program of some sort to either (a) monitor dhcpstrt and give up on it in x number of seconds (ie: if it's still trying in 60 seconds, kill it), or (b) monitor for connection state (and kill dhcpstrt if no success after x seconds) or so on - at which point a different connection method can be assigned (set up static routing on the lanX connection, retry dhcpstrt if it's timed out, etc).
Don't know if that helps, but it may be a clumsy workaround to create the solution you need.
Best,
Robert