Fix chat connects for pppd

This commit is contained in:
Roy Marples 2007-08-07 12:56:07 +00:00
parent 8d0f3f2b16
commit d50a46a7a5

View File

@ -115,7 +115,7 @@ pppd_pre_start() {
[ -n "$2" ] && chatopts="${chatopts} -U '$2'"
eval $(_get_array "chat_${IFVAR}")
if [ $# != 0 ] ; then
opts="${opts} connect $(printf "'%s' " "${chatopts} $(printf "'%s' " "$@")")"
opts="${opts} connect $(printf "\\'%s\\'" "${chatopts} $(printf "\\'\\\\'\\'%s\\'\\\'' " "$@")")"
fi
# Add plugins