diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-07-15 20:02:46 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-07-15 20:02:46 +0000 |
commit | ffdc7d69d899bd8d54d80aa092368d2d85c5eed0 (patch) | |
tree | f362e8eadb7005d4a7ef669d6c44891ccc70053f /net-dialup/ppp/files | |
parent | Initial import. (diff) | |
download | gentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.tar.gz gentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.tar.bz2 gentoo-2-ffdc7d69d899bd8d54d80aa092368d2d85c5eed0.zip |
do not always install peers file
Diffstat (limited to 'net-dialup/ppp/files')
-rw-r--r-- | net-dialup/ppp/files/net.ppp0 | 11 |
1 files changed, 7 insertions, 4 deletions
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 |