On Mon, Jul 28, 2008 at 06:32:18PM +0000, Ole Kliemann wrote:
> Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  starting pppd 
> (non-demand) : "/usr/sbin/pppd nodetach debug call dialup1217032395 password 
> simyo logfile /tmp/qtopia-0/qpe-pppd-log-dialup1217032395 connect 
> /opt/Qtopia/bin/qtopia-pppd-internal active /home/root/Appl
> Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  Call state:  2 
> Jul 28 16:29:29 om-gta02 user.notice Qtopia: Network :  Data state: "DataCall 
> started dataInactive " 
> Jul 28 16:29:29 om-gta02 user.notice Qtopia: /usr/sbin/pppd: unrecognized 
> option '
> Jul 28 16:29:29 om-gta02 user.notice Qtopia: '
> Jul 28 18:29:29 om-gta02 daemon.err pppd[2905]: unrecognized option ' '

Problem is that Qtopia launches pppd with garbage in the first arg and
without properly quoting. I made a blunt workaround using a shell
script.

Still that wasn't all... not yet sure what the next problem is.

Ole
#!/bin/sh

shift
args=
while [ $# -gt 0 ] ; do
        if [ "$1" == "disconnect" ] ; then
                args="$args' $1 '"
        else
                args="$args $1"
        fi
        if [ "$1" == "connect" ] ; then
                args="$args '"
        fi
        shift
done
/usr/sbin/_pppd $@

Attachment: pgpVAEK6Any9T.pgp
Description: PGP signature

_______________________________________________
Openmoko community mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to