From patchwork Mon Oct 20 21:32:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 401268 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id EF827140088 for ; Tue, 21 Oct 2014 08:34:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 23D1E32EC6; Mon, 20 Oct 2014 21:34:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lthapO1Ypgob; Mon, 20 Oct 2014 21:34:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3A39831DB7; Mon, 20 Oct 2014 21:34:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 902ED1C2239 for ; Mon, 20 Oct 2014 21:34:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A24691A02 for ; Mon, 20 Oct 2014 21:34:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Ae5HyAEFewi for ; Mon, 20 Oct 2014 21:34:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [62.210.192.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2B058919FD for ; Mon, 20 Oct 2014 21:34:20 +0000 (UTC) Received: from asgard (cpe-186-23-17-245.telecentro-reversos.com.ar [186.23.17.245] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.14.9/8.14.9) with ESMTP id s9KLYES4013659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 20 Oct 2014 21:34:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1413840858; bh=7go8FkvSn7JiLShW/1tcCaBu5pslLK8B71DqchFwhcU=; h=From:To:Cc:Subject:Date; b=RS4omR+kaqdSBzA8kHlR+a/bUs3yfuLgagSisYm12X+qPtEx23ufhKaiDkOivGtkZ /caske7OR/7rAw3CZoxIJlCQPkD4Ls1lrphnZQ+JM+zhQgDeEyGTZYIjZ0ZkwPFwlK 7dBWgkzoycKcxY98wF7SnbeJI+3F50bpkvOdpm4g= Received: by asgard (sSMTP sendmail emulation); Mon, 20 Oct 2014 18:32:32 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 20 Oct 2014 18:32:32 -0300 Message-Id: <1413840752-16362-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.0.4 X-Virus-Scanned: clamav-milter 0.98.4 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH] pppd: set resolv.conf directory appropiately X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" /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 --- 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