From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 1/2] Added functionality to remove modem from system, if needed.
Date: Thu, 29 Oct 2009 23:00:03 +0900 [thread overview]
Message-ID: <1256824803.5768.42.camel@localhost.localdomain> (raw)
In-Reply-To: <1256824474-31389-2-git-send-email-ryan.raasch@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Hi Ryan,
> ---
> test/enable-modem | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/test/enable-modem b/test/enable-modem
> index 0f9f604..d44783d 100755
> --- a/test/enable-modem
> +++ b/test/enable-modem
> @@ -1,6 +1,7 @@
> #!/usr/bin/python
>
> import dbus
> +import sys
>
> bus = dbus.SystemBus()
>
> @@ -14,4 +15,7 @@ path = properties["Modems"][0]
> modem = dbus.Interface(bus.get_object('org.ofono', path),
> 'org.ofono.Modem')
>
> -modem.SetProperty("Powered", dbus.Boolean(1))
> +if len(sys.argv) > 1 and sys.argv[1] == '0' :
> + modem.SetProperty("Powered", dbus.Boolean(0))
> +else :
> + modem.SetProperty("Powered", dbus.Boolean(1))
if you want this, then add a disable-modem script.
Regards
Marcel
next prev parent reply other threads:[~2009-10-29 14:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 13:54 [PATCH 0/2] python test scripts Ryan M. Raasch
2009-10-29 13:54 ` [PATCH 1/2] Added functionality to remove modem from system, if needed Ryan M. Raasch
2009-10-29 14:00 ` Marcel Holtmann [this message]
2009-10-29 14:16 ` Ryan Raasch
2009-10-29 14:20 ` Marcel Holtmann
2009-10-29 16:16 ` Ryan Raasch
2009-10-29 16:29 ` Denis Kenzior
2009-10-29 16:27 ` Denis Kenzior
2009-10-29 13:54 ` [PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card Ryan M. Raasch
2009-10-29 14:00 ` Marcel Holtmann
2009-10-29 14:17 ` Ryan Raasch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1256824803.5768.42.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox