All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Essen <lee.essen@nowonline.co.uk>
To: buildroot@busybox.net
Subject: [Buildroot] pppd makefile moves /etc/PPP/resolv.conf
Date: Mon, 26 Jan 2015 10:49:57 +0400	[thread overview]
Message-ID: <38D70EB2-AE5E-475D-865B-7225F7CD5E26@nowonline.co.uk> (raw)

Hi,

The current pppd package makefile has a post extract hook that changes the ppp generated resolv.conf from /etc/ppp/resolv.conf to /etc/resolv.conf with a comment suggesting that this is done because /etc/ppp might not be writable (and this location isn't useful because of where the c library looks.)

My assumption is that the original location provided you with flexibility to do clever things in the ppp-up script (and that's certainly what I want to do)

If you don't set usepeerdns then it looks like the server names don't get requested, so the creation of this file seems to be all or nothing - there is no way to work with just the env vars.

With the current buildroot setup your resolv.conf is overwritten with no option to do anything clever.

Wouldn't it be better to use /var/run/ppp.resolv.conf (or something similar) or even leave it as it was and include a symlink in /etc/ppp ??

Thanks,

Lee.

             reply	other threads:[~2015-01-26  6:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26  6:49 Lee Essen [this message]
2015-01-26 10:33 ` [Buildroot] pppd makefile moves /etc/PPP/resolv.conf Gustavo Zacarias
2015-01-26 13:27   ` Lee Essen
2015-01-26 14:09     ` Gustavo Zacarias
2015-01-26 15:52       ` Lee Essen
2015-01-26 16:07         ` Gustavo Zacarias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38D70EB2-AE5E-475D-865B-7225F7CD5E26@nowonline.co.uk \
    --to=lee.essen@nowonline.co.uk \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.