OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
3 import dbus | 7 import dbus |
4 import mm | 8 import mm |
5 | 9 |
6 manager = mm.ModemManager() | 10 devices = mm.EnumerateDevices() |
7 | 11 |
8 devices = manager.manager.EnumerateDevices() | 12 for manager, path in devices: |
9 | |
10 for path in devices: | |
11 print path | 13 print path |
12 | 14 |
13 modem = manager.Modem(path) | 15 modem = manager.Modem(path) |
14 | 16 |
15 modem.Enable(True) | 17 modem.Enable(True) |
OLD | NEW |