[Buildroot] [PATCH] pppd: set resolv.conf directory appropiately
Gustavo Zacarias
gustavo at zacarias.com.ar
Mon Oct 20 21:32:32 UTC 2014
/etc/ppp/resolv.conf might not be writable and it's not useful, switch
to standard /etc/resolv.conf
If users don't want to update dns lookup entries they shouldn't use the
"userpeerdns" option.
Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
package/pppd/pppd.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk
index eb06eec..384b868 100644
--- a/package/pppd/pppd.mk
+++ b/package/pppd/pppd.mk
@@ -35,6 +35,13 @@ endef
PPPD_POST_EXTRACT_HOOKS += PPPD_DROP_INTERNAL_IF_PPOL2TP_H
+# pppd defaults to /etc/ppp/resolv.conf
+# That might not be writable and definitely not useful
+define PPPD_SET_RESOLV_CONF
+ $(SED) 's,ppp/resolv.conf,resolv.conf,' $(@D)/pppd/pathnames.h
+endef
+PPPD_POST_EXTRACT_HOOKS += PPPD_SET_RESOLV_CONF
+
define PPPD_CONFIGURE_CMDS
$(SED) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR)/pppd/Makefile.linux
$(SED) 's/ifneq ($$(wildcard \/usr\/include\/pcap-bpf.h),)/ifdef FILTER/' $(PPPD_DIR)/*/Makefile.linux
--
2.0.4
More information about the buildroot
mailing list