From 2fc28414fa72eaebfebf8665437537a9d81b3817 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 19 Apr 2007 07:37:59 +0000 Subject: [PATCH] printf is more portable than echo -n --- net.Linux/pppd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index cc25458c..30154040 100644 --- a/net.Linux/pppd.sh +++ b/net.Linux/pppd.sh @@ -176,7 +176,7 @@ pppd_start() { mark_service_inactive "${SVCNAME}" if [ -n "${username}" ] \ && [ -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 \ --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null else