From ffdc7d69d899bd8d54d80aa092368d2d85c5eed0 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Tue, 15 Jul 2003 20:02:46 +0000 Subject: do not always install peers file --- net-dialup/ppp/ChangeLog | 6 +++++- net-dialup/ppp/files/net.ppp0 | 11 +++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'net-dialup') diff --git a/net-dialup/ppp/ChangeLog b/net-dialup/ppp/ChangeLog index 7ac67ccc1d20..d460f9ba11a4 100644 --- a/net-dialup/ppp/ChangeLog +++ b/net-dialup/ppp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dialup/ppp # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.25 2003/06/12 21:18:06 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.26 2003/07/15 20:02:46 azarah Exp $ + + 15 Jul 2003; Martin Schlemmer files/net.ppp0: + Do not update /etc/ppp/peers if no NUMBER is set - this is for non + dialup users, thanks to Maciek Freudenheim . 12 Jun 2003; ppp-2.4.1-r13.ebuild, ppp-2.4.1-r14.ebuild: diff --git a/net-dialup/ppp/files/net.ppp0 b/net-dialup/ppp/files/net.ppp0 index 9fdd9b158dac..a5d263035b95 100644 --- a/net-dialup/ppp/files/net.ppp0 +++ b/net-dialup/ppp/files/net.ppp0 @@ -4,7 +4,7 @@ # Author: Martin Schlemmer # Credits: To all those I got ideas from :) # -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/net.ppp0,v 1.1 2003/05/23 04:45:18 killian Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/net.ppp0,v 1.2 2003/07/15 20:02:46 azarah Exp $ # NB: Config is in /etc/conf.d/net.$IFACE @@ -152,9 +152,12 @@ setup_cfg_files() { if [ "${AUTOCFGFILES}" = "yes" ] then - # Setup the peers file - echo "connect '/usr/sbin/chat -v -f /etc/ppp/chat-${PEER}'" \ - >/etc/ppp/peers/${PEER} + if [ -n "${NUMBER}" ] + then + # Setup the peers file + echo "connect '/usr/sbin/chat -v -f /etc/ppp/chat-${PEER}'" \ + >/etc/ppp/peers/${PEER} + fi # Setup the secrets files echo "${USERNAME} ${PEER} \"${PASSWORD}\"" >/etc/ppp/chap-secrets -- cgit v1.2.3-65-gdbad