[Bug 312874] Re: with ppp interface, the scripts in /etc/network/if-up.d are executed before ppp0 interface is really present

Stéphane Graber stgraber at stgraber.org
Sat Jul 7 15:11:37 UTC 2012


** Changed in: ifupdown (Ubuntu)
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/312874

Title:
  with ppp interface, the scripts in /etc/network/if-up.d are executed
  before ppp0 interface is really present

Status in “ifupdown” package in Ubuntu:
  Fix Released

Bug description:
  in /etc/network/interfaces I have a ppp interface configured like
  this:

  auto dsl-provider
  iface dsl-provider inet ppp
  provider dsl-provider
      pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf

  this is my single connection to the internet

  
  I have the ntpdate package installed and wondered why the system time was not updated on automatic or manual execution of
  "ifup dsl-provider". 
  The syslog says "ntpdate: no servers can be used, exiting". This line appears IN BETWEEN the log messages from pppd, especially BEFORE "pppd: Connect: ppp0 <--> eth0"

  To further debug this, I put the following command in /etc/network/if-up.d/ntpdate: "ifconfig ppp0".
  This test confirms that the ppp0 interface is not present at the time of the execution of /etc/network/if-up.d/ntpdate

  The scripts in /etc/network/if-up.d/ are run before "pon" ist finished
  setting up the interface.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/312874/+subscriptions




More information about the foundations-bugs mailing list