summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-07-15 20:02:46 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-07-15 20:02:46 +0000
commitffdc7d69d899bd8d54d80aa092368d2d85c5eed0 (patch)
treef362e8eadb7005d4a7ef669d6c44891ccc70053f /net-dialup
parentInitial import. (diff)
downloadgentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.tar.gz
gentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.tar.bz2
gentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.zip
do not always install peers file
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/ppp/ChangeLog6
-rw-r--r--net-dialup/ppp/files/net.ppp011
2 files changed, 12 insertions, 5 deletions
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 <azarah@gentoo.org> files/net.ppp0:
+ Do not update /etc/ppp/peers if no NUMBER is set - this is for non
+ dialup users, thanks to Maciek Freudenheim <fahren@bochnia.pl>.
12 Jun 2003; <msterret@gentoo.org> 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 <azarah@gentoo.org>
# 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