11 Commits

Author SHA1 Message Date
Corentin Henry
05fe36e53f main/busybox-initscripts: udhcpc: act on IPv4 only
udhcpc works only with IPv4 addresses but the current
/usr/share/udhcpc/default.script script interferes with IPv6.

For example, when getting a new lease from an IPv4 address on a given
interface, all the addresses on this interfaces get flushed, including
IPv6. This issue has been reported to the busybox project:
https://bugs.busybox.net/show_bug.cgi?id=9621

This commit prevents udhcpc to act on IPv6 addresses.
2017-02-08 13:29:57 +02:00
David Scott
9223390957 main/busybox-initscripts: add support for DHCP search domains
This also updates /etc/resolv.conf atomically to avoid transient
failures during updates.

Signed-off-by: David Scott <dave.scott@docker.com>
2016-08-26 16:22:41 +00:00
Natanael Copa
5fd04a3cc9 Revert "main/busybox-initscripts: fix default.script DHCP behaviour"
Logic was broken.

This reverts commit 703e83eaed5020ebe2aa4dbfdfce21259abf2e83.
2016-08-26 16:22:41 +00:00
ScrumpyJack
703e83eaed main/busybox-initscripts: fix default.script DHCP behaviour
This tells /usr/share/udhcpc/default.script to leave resolv.conf
alone when not sent DHCP options for DNS (option 6) and a search
domain (option 15).
2016-08-01 16:33:30 +02:00
Natanael Copa
9e38486094 main/busybox-initscripts: support for disable gateway and dns in udhcpcd
ref #5672
2016-06-16 15:14:07 +00:00
Alex Dowad
12fe9934d9 main/busybox-initscripts: avoid misleading error message from udhcp default.script 2014-08-01 14:22:38 +00:00
Natanael Copa
692420e9ab main/busybox-initscripts: add support for broadcast from dhcp
ref #2880
2014-05-06 08:35:20 +00:00
Timo Teräs
f7ec72d86e main/busybox-initscripts: support 'peer-dns' in udhcpc hook
fixes #2781
2014-03-26 17:57:49 +02:00
Natanael Copa
09154e4efe main/busybox-initscripts: udhcpc: find the interface even if we dont have /sys
Needed for LXC
2012-12-24 15:50:26 +00:00
Natanael Copa
01e62c2fa4 main/busybox-initscripts: support multiple dhcp interfaces
We set the metric to 300 + ifindex for wifi and 200 + ifindex for
others. This is basically what dhcpcd does.

Also allow overriding the metric in interfaces file.

This makes multi isp setups easier.
2012-03-15 21:04:08 +00:00
Natanael Copa
5b3174f206 main/busybox-initscripts: move udhcpc script from alpine-baselayout
Does not belong in the baselayout package
2011-08-16 14:17:11 +00:00