OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Swarming Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Generates the file /etc/udev/rules.d/android_swarming_bot.rules to enable | 6 """Generates the file /etc/udev/rules.d/android_swarming_bot.rules to enable |
7 automatic Swarming bot to be fired up when an Android device with USB debugging | 7 automatic Swarming bot to be fired up when an Android device with USB debugging |
8 is connected. | 8 is connected. |
9 """ | 9 """ |
10 | 10 |
11 __version__ = '0.1' | 11 __version__ = '0.1' |
12 | 12 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 return 0 | 142 return 0 |
143 | 143 |
144 # 18d1==Google Inc. but we'd likely want to filter more broadly. | 144 # 18d1==Google Inc. but we'd likely want to filter more broadly. |
145 options.dev_filters = options.dev_filters or ['ATTR{idVendor}=="18d1"'] | 145 options.dev_filters = options.dev_filters or ['ATTR{idVendor}=="18d1"'] |
146 work(options.user, options.dev_filters) | 146 work(options.user, options.dev_filters) |
147 return 0 | 147 return 0 |
148 | 148 |
149 | 149 |
150 if __name__ == '__main__': | 150 if __name__ == '__main__': |
151 sys.exit(main()) | 151 sys.exit(main()) |
OLD | NEW |