OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: daniel3000 on September 04, 2005, 02:34:29 pm
-
Hello,
how can I control the Internet connection (usually controlled via the taskbar applet or via Menu items "Connect" / "Disconnect") from a shell script via console commands?
Thank you
daniel
-
ifconfig or iwconfig should help you.
ifconfig eth0 down
will bring down your interface for eth0 if that is your wireless interface.
I'm not sure how to do it with iwconfig and iwconfig -h didn't help me. Niether did the manpage on my linux box.
-
Well, I'm rather searching for the actual command which is executed if the taskbar applet is used. I think it is a qcop message.
But I don't know which one.
The Start Menu entries for "connect" and "disconnect" (/opt/Qtopia/apps/__6x0?0*.desktop) have "Embedded=network_connect" and "Embedded=network_disconnect" in the place where other apps have their command line.
But I do not know what this really does.
Thanks
daniel
-
doesn't the wizard merely use "cardctl scheme" in some way?
-
Hi daniel,
you can try somwthing like
# qcop "QPE/Network" "up()"
see more at https://www.oesf.org/index.php?title=Sharp_...a_QCop_Messages (https://www.oesf.org/index.php?title=Sharp_Qtopia_QCop_Messages)
HTH
-
qcop "QPE/Network" "up()"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94707\"][{POST_SNAPBACK}][/a][/div]
Thanks! That's what I was looking for!
daniel