Changing dhclient hardcoded options (Debian)
Alex Bligh
alex at alex.org.uk
Mon Aug 24 23:02:56 UTC 2015
On 24 Aug 2015, at 22:11, Nicolas C. <dhcp at nryc.fr> wrote:
> It seems that the package "ifupdown" on Debian provides hardcoded options for dhclient :
>
> http://stackoverflow.com/questions/14720571/which-program-invokes-dhclient-on-debian-squeeze
>
> I'd like to run dhclient with the "-i" option, is there an easy way (no recompiling / packaging) to do this?
Something like this (untested)
mv /sbin/dhclient /sbin/dhclient.orig
cat > /sbin/dhclient
#!/bin/bash
exec /sbin/dhclient.orig -i "$@"
^D
chmod 755 /sbin/dhclient
--
Alex Bligh
More information about the dhcp-users
mailing list