FS#1179 - dhclient and dhclient-script

Attached to Project: Arch Linux
Opened by Julian Wiesener (yofuh) - Friday, 23 July 2004, 22:58 GMT
Last edited by Judd Vinet (judd) - Tuesday, 27 July 2004, 15:13 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

dhclient-script must be in /etc to get dhclient working. It's currently useless in /sbin.

Package is dhcp, i know you can use dhcpcd.
This task depends upon

Closed by  Judd Vinet (judd)
Tuesday, 28 September 2004, 05:53 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Tuesday, 27 July 2004, 15:12 GMT
Why doesn't it work from /sbin?
Comment by Julian Wiesener (yofuh) - Tuesday, 27 July 2004, 15:53 GMT
The binary dhclient ned the dhclient-script. dhclient currently search for /etc/dhclient-script, if it can't be fount, you get the following error:

execve (/etc/dhclient-script, ...): No such file or directory

you will never call dhclient-script direct, leaving in /sbin doesn't make much sense, its more a configfile than a executable (see man dhclient-script(8): dhclient-script - DHCP client network configuration script), so its nothing wrong to move it to /etc


The other way woulb be a simple "sed -i 's!etc/dhclient-script!sbin/dhclient-script!g' etc/dhclient.conf" it solves the problem too. May be this is the better way, because /sbin/dhclient-script defined in dhcpd.h:

#define _PATH_DHCLIENT_SCRIPT "/sbin/dhclient-script"



Loading...