584f418ec1
When udhcpc is used on multiple network devices at the same time (or a mix of dhcp and fixed configuration), /etc/resolv.conf should contain the union of information from all the interfaces. Currently that's not the case. The udhcpc script simply overwrites resolv.conf with the information from the specific interface on each dhcp bound/renew event. Fix it by tagging lines with the interface they came from when added, and drop the affected lines on deconfig/renew. As /etc/resolv.conf is often a symlink to /tmp (and rootfs might be read only), special care has to be taken when it is updated. Notice that I'm not really aware of any official documentation requiring that '#' comments in /etc/resolv.conf must be supported, but atleast glibc and uClibc do. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> |
||
---|---|---|
.. | ||
1.19.4 | ||
1.20.2 | ||
1.21.0 | ||
busybox-1.19.x.config | ||
busybox-1.20.x.config | ||
busybox-1.21.x.config | ||
busybox.mk | ||
Config.in | ||
mdev.conf | ||
S01logging | ||
S10mdev | ||
S15watchdog | ||
udhcpc.script |