Bug 1478081 - /etc/ppp/ipv6-down does not run ipv6-down.local
/etc/ppp/ipv6-down does not run ipv6-down.local
Status: NEW
Product: Fedora
Classification: Fedora
Component: ppp (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Michal Sekletar
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-08-03 10:29 EDT by Antonin
Modified: 2017-12-16 08:25 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Antonin 2017-08-03 10:29:19 EDT
Description of problem:
ppp daemon on exit run /etc/ppp/ipv6-down script. This script should call local script "/etc/ppp/ipv6-down.local".
But this execution depends on existence of file "/etc/sysconfig/network-scripts/ifcfg-ppp0". If this file does not exist then "ipv6-down.local" is not started.

I found that it helps to change the shell (first line) in file "ipv6-down" from /bin/sh to /bin/bash. (#!/bin/bash)
The twins file /etc/ppp/ipv6-up in current package already has interpreter set to /bin/bash.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. don't use (remove) /etc/sysconfig/network-scripts/ifcfg-ppp0
2. create /etc/ppp/ipv6-down.local
3. pppd call provider
4. killall pppd

Actual results:
"/etc/ppp/ipv6-down" exits early and does not run local script "/etc/ppp/ipv6-down.local".

Expected results:
call ipv6-down.local

Additional info:

My ppp config file /etc/ppp/peers/provider:

plugin rp-pppoe.so
user USER
password PASSWORD
ipparam ppp0
lcp-echo-interval 20
lcp-echo-failure 3
maxfail 720
unit 0

Note You need to log in before you can comment on or make changes to this bug.