| … | |
… | |
| 174 | |
174 | |
| 175 | ebegin "Starting pppd in ${IFACE}" |
175 | ebegin "Starting pppd in ${IFACE}" |
| 176 | mark_service_inactive "${SVCNAME}" |
176 | mark_service_inactive "${SVCNAME}" |
| 177 | if [ -n "${username}" ] \ |
177 | if [ -n "${username}" ] \ |
| 178 | && [ -n "${password}" -o -z "${passwordset}" ] ; then |
178 | && [ -n "${password}" -o -z "${passwordset}" ] ; then |
| 179 | echo "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \ |
179 | printf "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \ |
| 180 | eval start-stop-daemon --start --exec /usr/sbin/pppd \ |
180 | eval start-stop-daemon --start --exec /usr/sbin/pppd \ |
| 181 | --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null |
181 | --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null |
| 182 | else |
182 | else |
| 183 | eval start-stop-daemon --start --exec /usr/sbin/pppd \ |
183 | eval start-stop-daemon --start --exec /usr/sbin/pppd \ |
| 184 | --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null |
184 | --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null |