dhcpd configuration

Bill Maltby LFS Related lfsbill at wlmcs.com
Wed Apr 24 10:52:28 PDT 2002

Hi Larry,

Suggestion re your part/full path concern is below.

On Wed, 24 Apr 2002, Larry Lawrence wrote:

> There will be a modification to the ifdown-eth0 script.
> In english, dhcp requires ifconfig eth0 down, dhcpcd does not, it uses -k to 
> release interface and evaluate_retval is added since killproc is removed.
> if DHCP_PROG = dhcpcd
>         dhcpcd -k eth0
> else
>         ifconfig eth0 down
> evaluate_retval
> I'll work on proper syntax to implement the above and then test on a dhcp 
> and dhcpcd clients.
> If anyone sees a cleaner solution to the above, please let me know. I am 
> very concerned with the test DHCP_PROG = dhcpcd as some will be setting 
> varible to full path, some not.

After acquiring the program name in DHCP_PROG:

   DHCP_PROG=`basename $DHCP_PROG`

will strip path portions for you so you always get file name only.

> Larry

Bill Maltby
billm at wlmcs.com

Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-dev' in the subject header of the message

More information about the blfs-dev mailing list