New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added /etc/ppp/ipv6-pre-up script #55

Open
wants to merge 1 commit into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Diff settings

Always

Just for now

Added an /etc/ppp/ipv6-pre-up script, the IPv6 equivalence to /etc/pp…

…p/ip-pre-up.
  • Loading branch information...
Tydus committed May 9, 2016
commit ad5b5e867d021bbc3cf9e6a3090e32857b7d899e
Copy path View file
@@ -1146,6 +1146,7 @@ ipv6_demand_conf(u)
return 0;
if (!sif6addr(u, wo->ourid, wo->hisid))
return 0;
ipv6cp_script(_PATH_IPV6PREUP, 1);
#if !defined(__linux__) && !(defined(SVR4) && (defined(SNI) || defined(__USLC__)))
if (!sifup(u))
return 0;
@@ -1236,6 +1237,9 @@ ipv6cp_up(f)
sifnpmode(f->unit, PPP_IPV6, NPMODE_PASS);
} else {
/* run the pre-up script, if any, and wait for it to finish */
ipv6cp_script(_PATH_IPV6PREUP, 1);
/* bring the interface up for IPv6 */
if (!sif6up(f->unit)) {
if (debug)
Copy path View file
@@ -38,6 +38,7 @@
#ifdef INET6
#define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up"
#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down"
#define _PATH_IPV6PREUP _ROOT_PATH "/etc/ppp/ipv6-pre-up"
#endif
#ifdef IPX_CHANGE
Copy path View file
@@ -1592,7 +1592,7 @@ Pppd invokes scripts at various stages in its processing which can be
used to perform site-specific ancillary processing. These scripts are
usually shell scripts, but could be executable code files instead.
Pppd does not wait for the scripts to finish (except for the ip-pre-up
script). The scripts are
and the ipv6-pre-up script). The scripts are
executed as root (with the real and effective user-id set to 0), so
that they can do things such as update routing tables or run
privileged daemons. Be careful that the contents of these scripts do
ProTip! Use n and p to navigate between commits in a pull request.