FS#31289 - [dhclient] relies heavily on deprecated net-tools, needs fixing
Attached to Project:
Arch Linux
Opened by Thomas Bächler (brain0) - Sunday, 26 August 2012, 14:04 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 19 March 2013, 15:21 GMT
Opened by Thomas Bächler (brain0) - Sunday, 26 August 2012, 14:04 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 19 March 2013, 15:21 GMT
|
Details
Our current dhclient-script relies heavily on ifconfig and
route. It also relies on ip for ipv6, thus mixing old and
new tools.
It is based on a script that was written in 1999, by a guy who was a complete shell scripting and linux noob, and is apparently completely unmaintained. Fedora has its own version of the script ([1]), but that uses tools we don't have - it is still a much better start than what upstream dhclient provides. Both scripts have a /bin/bash shebang, which is also bad, because I wanted to use dhclient+dhclient-script in initramfs, where I don't have bash. This script needs to be replaced by something that doesn't use deprecated tools and doesn't necessarily rely on bash. [1] http://pkgs.fedoraproject.org/cgit/dhcp.git/tree/dhclient-script |
This task depends upon
http://anonscm.debian.org/gitweb/?p=pkg-dhcp/isc-dhcp.git;a=blob;f=debian/dhclient-script.linux;h=85101554bbfba1f95df2999bd9c197dc045b427e;hb=HEAD
http://www.linuxfromscratch.org/patches/downloads/dhcp/dhcp-4.2.4-P2-client-script-1.patch
LFS also has another patch from fedora: http://www.linuxfromscratch.org/patches/downloads/dhcp/dhcp-4.2.4-P2-missing_ipv6-1.patch
The first patch applies on the upstream linux dhclient-script which is almost identical to the one Arch is using.