Having both dhcp.client and the default IP configuration. Ho

I want to be able to stay on some default IP configuration when|if my box
could not find the operational DHCP server.

If I first use /usr/ucb/ifconfig to set-up my networking and then start-up
the /usr/ucb/dhcp.client - the latter destroys the settings if no DHCP
server is found.

How to have the best of the both worlds?


The only solution I’ve found so far is to start dhcp.client in one-shot
mode and check it’s return code. If the code == 3 (no DHCP server found) -
to set up the networking to the defaults.
However, this implyes a one-minute timeout for dhcp.client to return.