summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net/pppd.sh')
-rw-r--r--net-scripts/net/pppd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net-scripts/net/pppd.sh b/net-scripts/net/pppd.sh
index feb74d4..24a3d25 100644
--- a/net-scripts/net/pppd.sh
+++ b/net-scripts/net/pppd.sh
@@ -138,7 +138,8 @@ pppd_start() {
password="password_${ifvar}"
#Add/update info in PAP/CHAP secrets files
- if [[ -n ${!username} && -n ${!password} ]] ; then
+ if [[ -n ${!username} ]] \
+ && [[ -n ${!password} || -z ${!password-x} ]] ; then
for i in chap pap ; do
if ! pppd_update_secrets_file "/etc/ppp/${i}-secrets" \
"${!username}" "${iface}" "${!password}" ; then