Christopher Wiley | 2f48d95 | 2013-02-22 09:51:47 -0800 | [diff] [blame] | 1 | #!/usr/bin/python |
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 | |||||
7 | import mm | ||||
8 | |||||
9 | devices = mm.EnumerateDevices() | ||||
10 | |||||
11 | for manager, path in devices: | ||||
12 | print path | ||||
13 | |||||
14 | modem = manager.Modem(path) | ||||
15 | |||||
16 | modem.Enable(True) |