blob: 25280fe9fbf937dbaa66e829e9427db16b61e7f6 [file] [log] [blame]
Christopher Wiley2f48d952013-02-22 09:51:47 -08001#!/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
7import mm
8import sys
9
10def Usage(prog):
11 print ("Usage: %s "
12 "<device path substring>") % prog
13
14if len(sys.argv) < 1 or len(sys.argv) > 2:
15 Usage(sys.argv[0])
16 sys.exit(1)
17
18if len(sys.argv) < 2:
19 modem_pattern = ''
20else:
21 modem_pattern = sys.argv[1]
22
23manager, path = mm.PickOneModem(modem_pattern)
24gobi_modem = manager.GobiModem(path)
25gobi_modem.SoftReset()