How to do mobile broadband from command line

Yegor Yefremov yegorslists at googlemail.com
Fri Mar 14 04:35:01 PDT 2014


On Fri, Mar 14, 2014 at 11:42 AM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> Hey Yegor,
>
> On Fri, Mar 14, 2014 at 11:34 AM, Yegor Yefremov
> <yegorslists at googlemail.com> wrote:
>> I have some questions regarding NetworkManager<->ModemManager integration.
>>
>> 1. how do I create a connection in nm, that is later referenced by its
>> id in "nmcli connection up"? I saw examples with "edit" command but nm
>> 0.9.8.8 says: Error: 'con' command 'edit' is not valid.
>>
>
> Try using nm-connection-editor (GTK+ based UI app). Don't know in
> which version the nmcli support for editing connections was added.
> Dan?

I'm using Buildroot (http://buildroot.uclibc.org/) on a system without
a display :-)

I'd say it is interesting to know, since which version the editing
feature was gone. I'm using the latest nm version. I'll try this
approach: http://ingignux.blogspot.de/2012/12/how-to-connect-to-wireless-network-with.html

>> 2. nm invokes daemon() to detach from console, i,e. become a daemon in
>> the start scripts. Is this functionality planned for mm? Or should one
>> only use start-stop-daemon or alike?
>
> Yeah, NetworkManager becomes a daemon by default unless --no-daemon is
> used, ModemManager never becomes a daemon by default. You can likely
> use start-stop-daemon for that if you want; or rely on DBus
> auto-activation; or let systemd handle the lifecycle for you, whatever
> you prefer. I don't think we'll add the daemonizing logic within MM,
> truth be told, not sure how helpful will that be.

You mean, if ModemManager wasn't started and nm is compiled with
--with-modem-manager-1, then nm would start mm, as soon as it
discovers a gsm device? Like here:
http://raphael.slinckx.net/blog/documents/dbus-tutorial

Yegor


More information about the ModemManager-devel mailing list