buildroot/package/pppd/Config.in
Maksim Salau 1bb454bcb1 pppd: Add an option to not to overwrite /etc/resolv.conf
By default pppd built by buildroot writes the list of nameservers to
/etc/resolv.conf instead of /etc/ppp/resolv.conf
This is not the default behavior of pppd and breaks name resolution
if several network interfaces are used. The change makes this optional
and enabled by default, to be backward compatible and to add a possibility
to turn this behavior off, if required.

Signed-off-by: Maksim Salau <msalau@iotecha.com>
[Arnout: extend the help text to explain that it won't work on readonly
 rootfs]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-10-21 16:59:49 +02:00

43 lines
1.2 KiB
Plaintext

config BR2_PACKAGE_PPPD
bool "pppd"
depends on !BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_USES_MUSL # Use __P() macro all over the tree
depends on BR2_USE_MMU
help
An implementation of the Point-to-point protocol.
http://www.samba.org/ppp/
if BR2_PACKAGE_PPPD
config BR2_PACKAGE_PPPD_FILTER
bool "filtering"
select BR2_PACKAGE_LIBPCAP
help
Packet filtering abilities for pppd. If enabled,
the pppd active-filter and pass-filter options
are available.
config BR2_PACKAGE_PPPD_RADIUS
bool "radius"
help
Install RADIUS support for pppd
config BR2_PACKAGE_PPPD_OVERWRITE_RESOLV_CONF
bool "overwrite /etc/resolv.conf"
default y
help
Overwrite /etc/resolv.conf instead of maintaining the
separate list of nameservers in /etc/ppp/resolv.conf
Note that the pppd default of writing to /etc/ppp/resolv.conf
does not work on a read-only rootfs unless you make it
writable in your rootfs customizations (e.g. by linking it to
a file in tmpfs or by mounting a writable filesystem on it).
endif
comment "pppd needs a uClibc or glibc toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU