Qtopia: GPRS

Ole Kliemann ole-om-community-2008 at mail.plastictree.net
Mon Jul 28 21:57:01 CEST 2008


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
-------------- next part --------------
#!/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 $@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20080728/4e2a93ab/attachment.pgp 


More information about the community mailing list