printf is more portable than echo -n
This commit is contained in:
parent
f05ac25185
commit
2fc28414fa
@ -176,7 +176,7 @@ pppd_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
|
||||||
echo "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \
|
printf "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \
|
||||||
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