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