Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add ppp=YES variable. Currently pppd(8) starts automatically...
details: https://anonhg.NetBSD.org/src/rev/cd7547c9742c
branches: trunk
changeset: 783959:cd7547c9742c
user: prlw1 <prlw1%NetBSD.org@localhost>
date: Sun Jan 13 18:47:57 2013 +0000
description:
Add ppp=YES variable. Currently pppd(8) starts automatically if ppp_peers
is not empty. Adding a ppp variable allows the default peer to be set,
and ppp set to NO so that dialing can happen with /etc/rc.d/ppp onestart.
Default set to YES so that old behaviour is preserved.
http://mail-index.netbsd.org/tech-userlevel/2012/08/21/msg006656.html
diffstat:
etc/defaults/rc.conf | 4 ++--
etc/rc.d/ppp | 3 ++-
share/man/man5/rc.conf.5 | 10 +++++++++-
3 files changed, 13 insertions(+), 4 deletions(-)
diffs (64 lines):
diff -r 9d47ab7343fe -r cd7547c9742c etc/defaults/rc.conf
--- a/etc/defaults/rc.conf Sun Jan 13 15:46:57 2013 +0000
+++ b/etc/defaults/rc.conf Sun Jan 13 18:47:57 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.conf,v 1.121 2013/01/11 04:32:41 riastradh Exp $
+# $NetBSD: rc.conf,v 1.122 2013/01/13 18:47:57 prlw1 Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
@@ -179,7 +179,7 @@
dhclient=NO # behave as a DHCP client
dhclient_flags="" # blank: config all interfaces
ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall
-ppp_peers="" # /etc/ppp/peers to call
+ppp=YES ppp_peers="" # /etc/ppp/peers to call
ip6mode=host # host, autohost or router
ip6uniquelocal=NO # IPv6 unique-local forwarding
rtsol=NO rtsol_flags="-a" # for ip6mode=autohost only
diff -r 9d47ab7343fe -r cd7547c9742c etc/rc.d/ppp
--- a/etc/rc.d/ppp Sun Jan 13 15:46:57 2013 +0000
+++ b/etc/rc.d/ppp Sun Jan 13 18:47:57 2013 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ppp,v 1.10 2012/12/13 21:51:52 wiz Exp $
+# $NetBSD: ppp,v 1.11 2013/01/13 18:47:58 prlw1 Exp $
#
# PROVIDE: ppp
@@ -14,6 +14,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="ppp"
+rcvar=$name
start_cmd="ppp_start"
stop_cmd="ppp_stop"
sig_stop="-INT"
diff -r 9d47ab7343fe -r cd7547c9742c share/man/man5/rc.conf.5
--- a/share/man/man5/rc.conf.5 Sun Jan 13 15:46:57 2013 +0000
+++ b/share/man/man5/rc.conf.5 Sun Jan 13 18:47:57 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: rc.conf.5,v 1.154 2012/10/02 09:18:59 roy Exp $
+.\" $NetBSD: rc.conf.5,v 1.155 2013/01/13 18:47:58 prlw1 Exp $
.\"
.\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved.
@@ -887,9 +887,17 @@
Run
.Xr pflogd 8
for dumping packet filter logging information to a file.
+.It Sy ppp
+A boolean. Toggles starting
+.Xr pppd 8
+on startup. See
+.Sy ppp_peers
+below.
.It Sy ppp_peers
A string.
If
+.Sy ppp
+is true and
.Sy ppp_peers
is not empty, then
.Pa /etc/rc.d/ppp
Home |
Main Index |
Thread Index |
Old Index