/[baselayout]/trunk/net-scripts/net/pppd.sh
Gentoo

Diff of /trunk/net-scripts/net/pppd.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2049 Revision 2050
136 local user password i 136 local user password i
137 username="username_${ifvar}" 137 username="username_${ifvar}"
138 password="password_${ifvar}" 138 password="password_${ifvar}"
139 139
140 #Add/update info in PAP/CHAP secrets files 140 #Add/update info in PAP/CHAP secrets files
141 if [[ -n ${!username} && -n ${!password} ]] ; then 141 if [[ -n ${!username} ]] \
142 && [[ -n ${!password} || -z ${!password-x} ]] ; then
142 for i in chap pap ; do 143 for i in chap pap ; do
143 if ! pppd_update_secrets_file "/etc/ppp/${i}-secrets" \ 144 if ! pppd_update_secrets_file "/etc/ppp/${i}-secrets" \
144 "${!username}" "${iface}" "${!password}" ; then 145 "${!username}" "${iface}" "${!password}" ; then
145 eerror "Failed to update /etc/ppp/${i}-secrets" 146 eerror "Failed to update /etc/ppp/${i}-secrets"
146 return 1 147 return 1

Legend:
Removed from v.2049  
changed lines
  Added in v.2050

  ViewVC Help
Powered by ViewVC 1.1.20