~isantop/system76-driver/pkexec

« back to all changes in this revision

Viewing changes to driverscontrol.py

  • Committer: Carl Richell
  • Date: 2012-10-08 21:59:36 UTC
  • Revision ID: carl@system76.com-20121008215936-4hlu01uowcoqq5ku
1.) Add Ubuntu 12.10 support
2.) Fix small window closing bug that brought up apport

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        elif version == ('12.04'):
77
77
            nodrivers = "true"
78
78
            return nodrivers
 
79
        elif version == ('12.10'):
 
80
            nodrivers = "true"
 
81
            return nodrivers
79
82
        else:
80
83
            nodrivers = "true"
81
84
            return nodrivers
110
113
        elif version == ('12.04'):
111
114
            nodrivers = "true"
112
115
            return nodrivers
 
116
        elif version == ('12.10'):
 
117
            nodrivers = "true"
 
118
            return nodrivers
113
119
        else:
114
120
            nodrivers = "true"
115
121
            return nodrivers
134
140
        elif version == ('12.04'):
135
141
            nodrivers = "true"
136
142
            return nodrivers
 
143
        elif version == ('12.10'):
 
144
            nodrivers = "true"
 
145
            return nodrivers
137
146
        else:
138
147
            nodrivers = "true"
139
148
            return nodrivers
149
158
        elif version == ('12.04'):
150
159
            nodrivers = "true"
151
160
            return nodrivers
 
161
        elif version == ('12.10'):
 
162
            nodrivers = "true"
 
163
            return nodrivers
152
164
        else:
153
165
            nodrivers = "true"
154
166
            return nodrivers
161
173
            return nodrivers
162
174
        elif version == ('12.04'):
163
175
            fprint.fingerprintGUI().install()
 
176
        elif version == ('12.10'):
 
177
            fprint.fingerprintGUI().install()
164
178
        else:
165
179
            nodrivers = "true"
166
180
            return nodrivers
202
216
        elif version == ('12.04'):
203
217
            nodrivers = "true"
204
218
            return nodrivers
 
219
        elif version == ('12.10'):
 
220
            nodrivers = "true"
 
221
            return nodrivers
205
222
        else:
206
223
            nodrivers = "true"
207
224
            return nodrivers
241
258
        elif version == ('12.04'):
242
259
            nodrivers = "true"
243
260
            return nodrivers
 
261
        elif version == ('12.10'):
 
262
            nodrivers = "true"
 
263
            return nodrivers
244
264
        else:
245
265
            nodrivers = "true"
246
266
            return nodrivers
271
291
        elif version == ('12.04'):
272
292
            fprint.fingerprintGUI().install()
273
293
            acpi.lemu1().install()
 
294
        elif version == ('12.10'):
 
295
            fprint.fingerprintGUI().install()
 
296
            acpi.lemu1().install()
274
297
        else:
275
298
            nodrivers = "true"
276
299
            return nodrivers
312
335
        elif version == ('12.04'):
313
336
            nodrivers = "true"
314
337
            return nodrivers
 
338
        elif version == ('12.10'):
 
339
            nodrivers = "true"
 
340
            return nodrivers
315
341
        else:
316
342
            nodrivers = "true"
317
343
            return nodrivers
353
379
        elif version == ('12.04'):
354
380
            nodrivers = "true"
355
381
            return nodrivers
 
382
        elif version == ('12.10'):
 
383
            nodrivers = "true"
 
384
            return nodrivers
356
385
        else:
357
386
            nodrivers = "true"
358
387
            return nodrivers
394
423
        elif version == ('12.04'):
395
424
            nodrivers = "true"
396
425
            return nodrivers
 
426
        elif version == ('12.10'):
 
427
            nodrivers = "true"
 
428
            return nodrivers
397
429
        else:
398
430
            nodrivers = "true"
399
431
            return nodrivers
434
466
        elif version == ('12.04'):
435
467
            nodrivers = "true"
436
468
            return nodrivers
 
469
        elif version == ('12.10'):
 
470
            nodrivers = "true"
 
471
            return nodrivers
437
472
        else:
438
473
            nodrivers = "true"
439
474
            return nodrivers
450
485
            return nodrivers
451
486
        elif version == ('12.04'):
452
487
            fprint.fingerprintGUI().install()
 
488
        elif version == ('12.10'):
 
489
            fprint.fingerprintGUI().install()
453
490
        else:
454
491
            nodrivers = "true"
455
492
            return nodrivers
457
494
        if version == ('12.04'):
458
495
            acpi.lemu1().install()
459
496
            misc.realtek_rts_bpp().install()
 
497
        elif version == ('12.10'):
 
498
            acpi.lemu1().install()
 
499
            misc.realtek_rts_bpp().install()
460
500
        else:
461
501
            nodrivers = "true"
462
502
            return nodrivers
500
540
        elif version == ('12.04'):
501
541
            nodrivers = "true"
502
542
            return nodrivers
 
543
        elif version == ('12.10'):
 
544
            nodrivers = "true"
 
545
            return nodrivers
503
546
        else:
504
547
            nodrivers = "true"
505
548
            return nodrivers
542
585
        elif version == ('12.04'):
543
586
            nodrivers = "true"
544
587
            return nodrivers
 
588
        elif version == ('12.10'):
 
589
            nodrivers = "true"
 
590
            return nodrivers
545
591
        else:
546
592
            nodrivers = "true"
547
593
            return nodrivers
583
629
        elif version == ('12.04'):
584
630
            nodrivers = "true"
585
631
            return nodrivers
 
632
        elif version == ('12.10'):
 
633
            nodrivers = "true"
 
634
            return nodrivers
586
635
        else:
587
636
            nodrivers = "true"
588
637
            return nodrivers
622
671
        elif version == ('12.04'):
623
672
            nodrivers = "true"
624
673
            return nodrivers
 
674
        elif version == ('12.10'):
 
675
            nodrivers = "true"
 
676
            return nodrivers
625
677
        else:
626
678
            nodrivers = "true"
627
679
            return nodrivers
653
705
        elif version == ('12.04'):
654
706
            uvc.quirks().install()
655
707
            fprint.fingerprintGUI().install()
 
708
        elif version == ('12.10'):
 
709
            uvc.quirks().install()
 
710
            fprint.fingerprintGUI().install()
656
711
        else:
657
712
            nodrivers = "true"
658
713
            return nodrivers
695
750
        elif version == ('12.04'):
696
751
            nodrivers = "true"
697
752
            return nodrivers
 
753
        elif version == ('12.10'):
 
754
            nodrivers = "true"
 
755
            return nodrivers
698
756
        else:
699
757
            nodrivers = "true"
700
758
            return nodrivers
717
775
            acpi.lemu1().install()
718
776
        elif version == ('12.04'):
719
777
            acpi.lemu1().install()
 
778
        elif version == ('12.10'):
 
779
            acpi.lemu1().install()
720
780
        else:
721
781
            nodrivers = "true"
722
782
            return nodrivers
735
795
        elif version == ('12.04'):
736
796
            nodrivers = "true"
737
797
            return nodrivers
 
798
        elif version == ('12.10'):
 
799
            nodrivers = "true"
 
800
            return nodrivers
738
801
        else:
739
802
            nodrivers = "true"
740
803
            return nodrivers
745
808
            acpi.lemu1().install()
746
809
        elif version == ('12.04'):
747
810
            acpi.lemu1().install()
 
811
        elif version == ('12.10'):
 
812
            acpi.lemu1().install()
748
813
        else:
749
814
            nodrivers = "true"
750
815
            return nodrivers
755
820
        elif version == ('12.04'):
756
821
            acpi.lemu1().install()
757
822
            misc.realtek_rts_bpp().install()
 
823
        elif version == ('12.10'):
 
824
            acpi.lemu1().install()
 
825
            misc.realtek_rts_bpp().install()
758
826
        else:
759
827
            nodrivers = "true"
760
828
            return nodrivers
780
848
        elif version == ('12.04'):
781
849
            nodrivers = "true"
782
850
            return nodrivers
 
851
        elif version == ('12.10'):
 
852
            nodrivers = "true"
 
853
            return nodrivers
783
854
        else:
784
855
            nodrivers = "true"
785
856
            return nodrivers
796
867
        elif version == ('12.04'):
797
868
            nodrivers = "true"
798
869
            return nodrivers
 
870
        elif version == ('12.10'):
 
871
            nodrivers = "true"
 
872
            return nodrivers
799
873
        else:
800
874
            nodrivers = "true"
801
875
            return nodrivers
806
880
        elif version == ('12.04'):
807
881
            nodrivers = "true"
808
882
            return nodrivers
 
883
        elif version == ('12.10'):
 
884
            nodrivers = "true"
 
885
            return nodrivers
809
886
        else:
810
887
            nodrivers = "true"
811
888
            return nodrivers
834
911
        elif version == ('12.04'):
835
912
            nodrivers = "true"
836
913
            return nodrivers
 
914
        elif version == ('12.10'):
 
915
            nodrivers = "true"
 
916
            return nodrivers
837
917
        else:
838
918
            nodrivers = "true"
839
919
            return nodrivers
859
939
        elif version == ('12.04'):
860
940
            nodrivers = "true"
861
941
            return nodrivers
 
942
        elif version == ('12.10'):
 
943
            nodrivers = "true"
 
944
            return nodrivers
862
945
        else:
863
946
            nodrivers = "true"
864
947
            return nodrivers
884
967
        elif version == ('12.04'):
885
968
            nodrivers = "true"
886
969
            return nodrivers
 
970
        elif version == ('12.10'):
 
971
            nodrivers = "true"
 
972
            return nodrivers
887
973
        else:
888
974
            nodrivers = "true"
889
975
            return nodrivers
897
983
        elif version == ('12.04'):
898
984
            nodrivers = "true"
899
985
            return nodrivers
 
986
        elif version == ('12.10'):
 
987
            nodrivers = "true"
 
988
            return nodrivers
900
989
        else:
901
990
            nodrivers = "true"
902
991
            return nodrivers
931
1020
        elif version == ('12.04'):
932
1021
            nodrivers = "true"
933
1022
            return nodrivers
 
1023
        elif version == ('12.10'):
 
1024
            nodrivers = "true"
 
1025
            return nodrivers
934
1026
        else:
935
1027
            nodrivers = "true"
936
1028
            return nodrivers
961
1053
            return nodrivers
962
1054
        elif version == ('12.04'):
963
1055
            fprint.fingerprintGUI().install()
 
1056
        elif version == ('12.10'):
 
1057
            fprint.fingerprintGUI().install()
964
1058
        else:
965
1059
            nodrivers = "true"
966
1060
            return nodrivers
991
1085
            return nodrivers
992
1086
        elif version == ('12.04'):
993
1087
            fprint.fingerprintGUI().install()
 
1088
        elif version == ('12.10'):
 
1089
            fprint.fingerprintGUI().install()
994
1090
        else:
995
1091
            nodrivers = "true"
996
1092
            return nodrivers
1021
1117
            return nodrivers
1022
1118
        elif version == ('12.04'):
1023
1119
            fprint.fingerprintGUI().install()
 
1120
        elif version == ('12.10'):
 
1121
            fprint.fingerprintGUI().install()
1024
1122
        else:
1025
1123
            nodrivers = "true"
1026
1124
            return nodrivers
1044
1142
            return nodrivers
1045
1143
        elif version == ('12.04'):
1046
1144
            fprint.fingerprintGUI().install()
 
1145
        elif version == ('12.10'):
 
1146
            fprint.fingerprintGUI().install()
1047
1147
        else:
1048
1148
            nodrivers = "true"
1049
1149
            return nodrivers
1055
1155
            acpi.lemu1().install()
1056
1156
        elif version == ('12.04'):
1057
1157
            acpi.lemu1().install()
 
1158
        elif version == ('12.10'):
 
1159
            acpi.lemu1().install()
1058
1160
        else:
1059
1161
            nodrivers = "true"
1060
1162
            return nodrivers
1065
1167
        elif version == ('12.04'):
1066
1168
            acpi.lemu1().install()
1067
1169
            misc.realtek_rts_bpp().install()
 
1170
        elif version == ('12.10'):
 
1171
            acpi.lemu1().install()
 
1172
            misc.realtek_rts_bpp().install()
1068
1173
        else:
1069
1174
            nodrivers = "true"
1070
1175
            return nodrivers
1104
1209
        elif version == ('12.04'):
1105
1210
            nodrivers = "true"
1106
1211
            return nodrivers
 
1212
        elif version == ('12.10'):
 
1213
            nodrivers = "true"
 
1214
            return nodrivers
1107
1215
        else:
1108
1216
            nodrivers = "true"
1109
1217
            return nodrivers
1142
1250
        elif version == ('12.04'):
1143
1251
            nodrivers = "true"
1144
1252
            return nodrivers
 
1253
        elif version == ('12.10'):
 
1254
            nodrivers = "true"
 
1255
            return nodrivers
1145
1256
        else:
1146
1257
            nodrivers = "true"
1147
1258
            return nodrivers
1161
1272
        elif version == ('12.04'):
1162
1273
            nodrivers = "true"
1163
1274
            return nodrivers
 
1275
        elif version == ('12.10'):
 
1276
            nodrivers = "true"
 
1277
            return nodrivers
1164
1278
        else:
1165
1279
            nodrivers = "true"
1166
1280
            return nodrivers
1174
1288
        elif version == ('12.04'):
1175
1289
            nodrivers = "true"
1176
1290
            return nodrivers
 
1291
        elif version == ('12.10'):
 
1292
            nodrivers = "true"
 
1293
            return nodrivers
1177
1294
        else:
1178
1295
            nodrivers = "true"
1179
1296
            return nodrivers
1181
1298
        if version == ('12.04'):
1182
1299
            nodrivers = "true"
1183
1300
            return nodrivers
 
1301
        elif version == ('12.10'):
 
1302
            nodrivers = "true"
 
1303
            return nodrivers
1184
1304
        else:
1185
1305
            nodrivers = "true"
1186
1306
            return nodrivers
1223
1343
        elif version == ('12.04'):
1224
1344
            nodrivers = "true"
1225
1345
            return nodrivers
 
1346
        elif version == ('12.10'):
 
1347
            nodrivers = "true"
 
1348
            return nodrivers
1226
1349
        else:
1227
1350
            nodrivers = "true"
1228
1351
            return nodrivers
1265
1388
        elif version == ('12.04'):
1266
1389
            nodrivers = "true"
1267
1390
            return nodrivers
 
1391
        elif version == ('12.10'):
 
1392
            nodrivers = "true"
 
1393
            return nodrivers
1268
1394
        else:
1269
1395
            nodrivers = "true"
1270
1396
            return nodrivers
1307
1433
        elif version == ('12.04'):
1308
1434
            nodrivers = "true"
1309
1435
            return nodrivers
 
1436
        elif version == ('12.10'):
 
1437
            nodrivers = "true"
 
1438
            return nodrivers
1310
1439
        else:
1311
1440
            nodrivers = "true"
1312
1441
            return nodrivers
1340
1469
        elif version == ('12.04'):
1341
1470
            nodrivers = "true"
1342
1471
            return nodrivers
 
1472
        elif version == ('12.10'):
 
1473
            nodrivers = "true"
 
1474
            return nodrivers
1343
1475
        else:
1344
1476
            nodrivers = "true"
1345
1477
            return nodrivers
1371
1503
        elif version == ('12.04'):
1372
1504
            nodrivers = "true"
1373
1505
            return nodrivers
 
1506
        elif version == ('12.10'):
 
1507
            nodrivers = "true"
 
1508
            return nodrivers
1374
1509
        else:
1375
1510
            nodrivers = "true"
1376
1511
            return nodrivers
1402
1537
        elif version == ('12.04'):
1403
1538
            nodrivers = "true"
1404
1539
            return nodrivers
 
1540
        elif version == ('12.10'):
 
1541
            nodrivers = "true"
 
1542
            return nodrivers
1405
1543
        else:
1406
1544
            nodrivers = "true"
1407
1545
            return nodrivers
1444
1582
        elif version == ('12.04'):
1445
1583
            nodrivers = "true"
1446
1584
            return nodrivers
 
1585
        elif version == ('12.10'):
 
1586
            nodrivers = "true"
 
1587
            return nodrivers
1447
1588
        else:
1448
1589
            nodrivers = "true"
1449
1590
            return nodrivers
1485
1626
        elif version == ('12.04'):
1486
1627
            nodrivers = "true"
1487
1628
            return nodrivers
 
1629
        elif version == ('12.10'):
 
1630
            nodrivers = "true"
 
1631
            return nodrivers
1488
1632
        else:
1489
1633
            nodrivers = "true"
1490
1634
            return nodrivers
1519
1663
        elif version == ('12.04'):
1520
1664
            nodrivers = "true"
1521
1665
            return nodrivers
 
1666
        elif version == ('12.10'):
 
1667
            nodrivers = "true"
 
1668
            return nodrivers
1522
1669
        else:
1523
1670
            nodrivers = "true"
1524
1671
            return nodrivers
1560
1707
        elif version == ('12.04'):
1561
1708
            nodrivers = "true"
1562
1709
            return nodrivers
 
1710
        elif version == ('12.10'):
 
1711
            nodrivers = "true"
 
1712
            return nodrivers
1563
1713
        else:
1564
1714
            nodrivers = "true"
1565
1715
            return nodrivers
1601
1751
        elif version == ('12.04'):
1602
1752
            nodrivers = "true"
1603
1753
            return nodrivers
 
1754
        elif version == ('12.10'):
 
1755
            nodrivers = "true"
 
1756
            return nodrivers
1604
1757
        else:
1605
1758
            nodrivers = "true"
1606
1759
            return nodrivers
1642
1795
        elif version == ('12.04'):
1643
1796
            nodrivers = "true"
1644
1797
            return nodrivers
 
1798
        elif version == ('12.10'):
 
1799
            nodrivers = "true"
 
1800
            return nodrivers
1645
1801
        else:
1646
1802
            nodrivers = "true"
1647
1803
            return nodrivers
1683
1839
        elif version == ('12.04'):
1684
1840
            nodrivers = "true"
1685
1841
            return nodrivers
 
1842
        elif version == ('12.10'):
 
1843
            nodrivers = "true"
 
1844
            return nodrivers
1686
1845
        else:
1687
1846
            nodrivers = "true"
1688
1847
            return nodrivers
1710
1869
            return nodrivers
1711
1870
        elif version == ('12.04'):
1712
1871
            fprint.fingerprintGUI().install()
 
1872
        elif version == ('12.10'):
 
1873
            fprint.fingerprintGUI().install()
1713
1874
        else:
1714
1875
            nodrivers = "true"
1715
1876
            return nodrivers
1733
1894
            return nodrivers
1734
1895
        elif version == ('12.04'):
1735
1896
            fprint.fingerprintGUI().install()
 
1897
        elif version == ('12.10'):
 
1898
            fprint.fingerprintGUI().install()
1736
1899
        else:
1737
1900
            nodrivers = "true"
1738
1901
            return nodrivers
1749
1912
            return nodrivers
1750
1913
        elif version == ('12.04'):
1751
1914
            fprint.fingerprintGUI().install()
 
1915
        elif version == ('12.10'):
 
1916
            fprint.fingerprintGUI().install()
1752
1917
        else:
1753
1918
            nodrivers = "true"
1754
1919
            return nodrivers
1783
1948
            sound.alsa13().install()
1784
1949
            acpi.star1().install()
1785
1950
            misc.wireless8187b().install()
 
1951
        elif version == ('12.10'):
 
1952
            sound.alsa13().install()
 
1953
            acpi.star1().install()
 
1954
            misc.wireless8187b().install()
1786
1955
        else:
1787
1956
            nodrivers = "true"
1788
1957
            return nodrivers
1801
1970
        elif version == ('12.04'):
1802
1971
            nodrivers = "true"
1803
1972
            return nodrivers
 
1973
        elif version == ('12.10'):
 
1974
            nodrivers = "true"
 
1975
            return nodrivers
1804
1976
        else:
1805
1977
            nodrivers = "true"
1806
1978
            return nodrivers
1820
1992
        elif version == ('12.04'):
1821
1993
            nodrivers = "true"
1822
1994
            return nodrivers
 
1995
        elif version == ('12.10'):
 
1996
            nodrivers = "true"
 
1997
            return nodrivers
1823
1998
        else:
1824
1999
            nodrivers = "true"
1825
2000
            return nodrivers
1839
2014
        elif version == ('12.04'):
1840
2015
            nodrivers = "true"
1841
2016
            return nodrivers
 
2017
        elif version == ('12.10'):
 
2018
            nodrivers = "true"
 
2019
            return nodrivers
1842
2020
        else:
1843
2021
            nodrivers = "true"
1844
2022
            return nodrivers
1858
2036
        elif version == ('12.04'):
1859
2037
            nodrivers = "true"
1860
2038
            return nodrivers
 
2039
        elif version == ('12.10'):
 
2040
            nodrivers = "true"
 
2041
            return nodrivers
1861
2042
        else:
1862
2043
            nodrivers = "true"
1863
2044
            return nodrivers
1882
2063
        elif version == ('12.04'):
1883
2064
            nodrivers = "true"
1884
2065
            return nodrivers
 
2066
        elif version == ('12.10'):
 
2067
            nodrivers = "true"
 
2068
            return nodrivers
1885
2069
        else:
1886
2070
            nodrivers = "true"
1887
2071
            return nodrivers
1895
2079
        elif version == ('12.04'):
1896
2080
            nodrivers = "true"
1897
2081
            return nodrivers
 
2082
        elif version == ('12.10'):
 
2083
            nodrivers = "true"
 
2084
            return nodrivers
1898
2085
        else:
1899
2086
            nodrivers = "true"
1900
2087
            return nodrivers
1938
2125
        elif version == ('12.04'):
1939
2126
            nodrivers = "true"
1940
2127
            return nodrivers
 
2128
        elif version == ('12.10'):
 
2129
            nodrivers = "true"
 
2130
            return nodrivers
1941
2131
        else:
1942
2132
            nodrivers = "true"
1943
2133
            return nodrivers
1981
2171
        elif version == ('12.04'):
1982
2172
            nodrivers = "true"
1983
2173
            return nodrivers
 
2174
        elif version == ('12.10'):
 
2175
            nodrivers = "true"
 
2176
            return nodrivers
1984
2177
        else:
1985
2178
            nodrivers = "true"
1986
2179
            return nodrivers
2024
2217
        elif version == ('12.04'):
2025
2218
            nodrivers = "true"
2026
2219
            return nodrivers
 
2220
        elif version == ('12.10'):
 
2221
            nodrivers = "true"
 
2222
            return nodrivers
2027
2223
        else:
2028
2224
            nodrivers = "true"
2029
2225
            return nodrivers
2061
2257
        elif version == ('12.04'):
2062
2258
            nodrivers = "true"
2063
2259
            return nodrivers
 
2260
        elif version == ('12.10'):
 
2261
            nodrivers = "true"
 
2262
            return nodrivers
2064
2263
        else:
2065
2264
            nodrivers = "true"
2066
2265
            return nodrivers
2089
2288
        elif version == ('12.04'):
2090
2289
            nodrivers = "true"
2091
2290
            return nodrivers
 
2291
        elif version == ('12.10'):
 
2292
            nodrivers = "true"
 
2293
            return nodrivers
2092
2294
        else:
2093
2295
            nodrivers = "true"
2094
2296
            return nodrivers
2111
2313
        elif version == ('12.04'):
2112
2314
            nodrivers = "true"
2113
2315
            return nodrivers
 
2316
        elif version == ('12.10'):
 
2317
            nodrivers = "true"
 
2318
            return nodrivers
2114
2319
        else:
2115
2320
            nodrivers = "true"
2116
2321
            return nodrivers
2127
2332
        elif version == ('12.04'):
2128
2333
            nodrivers = "true"
2129
2334
            return nodrivers
 
2335
        elif version == ('12.10'):
 
2336
            nodrivers = "true"
 
2337
            return nodrivers
2130
2338
        else:
2131
2339
            nodrivers = "true"
2132
2340
            return nodrivers
2134
2342
        if version == ('12.04'):
2135
2343
            nodrivers = "true"
2136
2344
            return nodrivers
 
2345
        elif version == ('12.10'):
 
2346
            nodrivers = "true"
 
2347
            return nodrivers
2137
2348
        else:
2138
2349
            nodrivers = "true"
2139
2350
            return nodrivers