On Sun, Jul 15, 2012 at 08:26:45PM +0200, folkert wrote:
> Package: isc-dhcp-client
> Version: 4.2.2.dfsg.1-5
> Severity: wishlist
> File: /sbin/dhclient
> 
> Hi,

Hi,
 
> If you ever feel the need to do some coding, I have a couple of suggestions 
> for dhcp:
> - make updating resolv.conf switchable, so that you can prevent it from doing 
> so
> - make setting the default gateway switchable
> 
> This can be accomplished by manually editting /sbin/dhclient-script but that 
> gives problems if you e.g. want to get def gw on eth0 via dhcp (but not on 
> eth1).

So you can accomplish the /etc/resolv.conf part today, by redefining the
make_resolv_conf() function in a custom hook in
/etc/dhcp/dhclient-enter-hooks.d/ You could make the function be a total
no-op, and then you have what you want there.

As for default gateway behaviour, that's a bit more difficult today. It is
my longer term vision for /sbin/dhclient-script to be a large collection of
shell functions that can be user-overridden by way of hooks.
 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.4.0 (SMP w/6 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set 
> LC_ALL to default locale: No such file or directory
> UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages isc-dhcp-client depends on:
> ii  debianutils      4.3
> ii  iproute          20120319-1
> ii  isc-dhcp-common  4.2.2.dfsg.1-5
> ii  libc6            2.13-33
> 
> isc-dhcp-client recommends no packages.
> 
> Versions of packages isc-dhcp-client suggests:
> pn  avahi-autoipd  <none>
> pn  resolvconf     <none>
> 
> -- debconf information excluded
> 
> _______________________________________________
> pkg-dhcp-devel mailing list
> pkg-dhcp-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-dhcp-devel
> 

Attachment: signature.asc
Description: Digital signature

Reply via email to