no need for the sed using printf
This commit is contained in:
parent
d3b28724b5
commit
768a8cf86c
@ -172,7 +172,7 @@ pppd_pre_start() {
|
|||||||
mark_service_inactive "${SVCNAME}"
|
mark_service_inactive "${SVCNAME}"
|
||||||
if [ -n "${username}" ] \
|
if [ -n "${username}" ] \
|
||||||
&& [ -n "${password}" -o -z "${passwordset}" ] ; then
|
&& [ -n "${password}" -o -z "${passwordset}" ] ; then
|
||||||
printf "%s" "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \
|
printf "%s" "${password}" | \
|
||||||
eval start-stop-daemon --start --exec /usr/sbin/pppd \
|
eval start-stop-daemon --start --exec /usr/sbin/pppd \
|
||||||
--pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null
|
--pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user