summaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-19 07:37:59 +0000
committerRoy Marples <roy@marples.name>2007-04-19 07:37:59 +0000
commit2fc28414fa72eaebfebf8665437537a9d81b3817 (patch)
tree6289a4426e75cd93c2a126c36c198ef9aeb32fa0 /net.Linux
parentf05ac25185ddcd4f84b35ff3ffdcc54a36bc6bd7 (diff)
downloadopenrc-2fc28414fa72eaebfebf8665437537a9d81b3817.tar.gz
openrc-2fc28414fa72eaebfebf8665437537a9d81b3817.tar.bz2
openrc-2fc28414fa72eaebfebf8665437537a9d81b3817.tar.xz
printf is more portable than echo -n
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/pppd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh
index cc25458..3015404 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