Re: Handling static ip address configuration using /etc/network/interface
Amit Uttamchandani
Wed Jan 28 17:50:19 2015
On Wed, Jan 28, 2015 at 07:36:38AM +0000, Roy Marples wrote:
[snip]
>
> I think it's a good idea, novel and works!
> Two points.
> You should test for PREINIT, not CARRIER as you only want to check once really
> and as fast as possible.
> Also, use dhcpcd -x and not -k. If the user wants to release all the time,
> specify that in dhcpcd.conf, don't assume you know better by forcing it in a
> script.
>
> Otherwise looks very good!
Thanks Roy. Yes, PREINIT will work better. I will also change it to -x
instead of -k.
For specifying it in dhcpcd.conf, do you mean using the denyinterfaces
option? If so, the main reason why I can't do it is that in our product,
the rootfs is mounted as readonly.
Thanks,
Amit
Archive administrator: postmaster@marples.name