~isantop/system76-driver/pkexec

« back to all changes in this revision

Viewing changes to driversdescribe.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:
28
28
descriptionFile = "/tmp/sys76-drivers"
29
29
 
30
30
def describeDrivers():
31
 
    """This function installs the appropriate drivers for each machine"""
 
31
    """This function describes drivers installed for each machine"""
32
32
    
33
33
    global nodrivers
34
34
    nodrivers = "false"
79
79
        elif version == ('12.04'):
80
80
            nodrivers = "true"
81
81
            return nodrivers
 
82
        elif version == ('12.10'):
 
83
            nodrivers = "true"
 
84
            return nodrivers
82
85
        else:
83
86
            nodrivers = "true"
84
87
            return nodrivers
113
116
        elif version == ('12.04'):
114
117
            nodrivers = "true"
115
118
            return nodrivers
 
119
        elif version == ('12.10'):
 
120
            nodrivers = "true"
 
121
            return nodrivers
116
122
        else:
117
123
            nodrivers = "true"
118
124
            return nodrivers
137
143
        elif version == ('12.04'):
138
144
            nodrivers = "true"
139
145
            return nodrivers
 
146
        elif version == ('12.10'):
 
147
            nodrivers = "true"
 
148
            return nodrivers
140
149
        else:
141
150
            nodrivers = "true"
142
151
            return nodrivers
152
161
        elif version == ('12.04'):
153
162
            nodrivers = "true"
154
163
            return nodrivers
 
164
        elif version == ('12.10'):
 
165
            nodrivers = "true"
 
166
            return nodrivers
155
167
        else:
156
168
            nodrivers = "true"
157
169
            return nodrivers
164
176
            return nodrivers
165
177
        elif version == ('12.04'):
166
178
            fprint.fingerprintGUI().describe()
 
179
        elif version == ('12.10'):
 
180
            fprint.fingerprintGUI().describe()
167
181
        else:
168
182
            nodrivers = "true"
169
183
            return nodrivers
205
219
        elif version == ('12.04'):
206
220
            nodrivers = "true"
207
221
            return nodrivers
 
222
        elif version == ('12.10'):
 
223
            nodrivers = "true"
 
224
            return nodrivers
208
225
        else:
209
226
            nodrivers = "true"
210
227
            return nodrivers
244
261
        elif version == ('12.04'):
245
262
            nodrivers = "true"
246
263
            return nodrivers
 
264
        elif version == ('12.10'):
 
265
            nodrivers = "true"
 
266
            return nodrivers
247
267
        else:
248
268
            nodrivers = "true"
249
269
            return nodrivers
274
294
        elif version == ('12.04'):
275
295
            fprint.fingerprintGUI().describe()
276
296
            acpi.lemu1().describe()
 
297
        elif version == ('12.10'):
 
298
            fprint.fingerprintGUI().describe()
 
299
            acpi.lemu1().describe()
277
300
        else:
278
301
            nodrivers = "true"
279
302
            return nodrivers
315
338
        elif version == ('12.04'):
316
339
            nodrivers = "true"
317
340
            return nodrivers
 
341
        elif version == ('12.10'):
 
342
            nodrivers = "true"
 
343
            return nodrivers
318
344
        else:
319
345
            nodrivers = "true"
320
346
            return nodrivers
356
382
        elif version == ('12.04'):
357
383
            nodrivers = "true"
358
384
            return nodrivers
 
385
        elif version == ('12.10'):
 
386
            nodrivers = "true"
 
387
            return nodrivers
359
388
        else:
360
389
            nodrivers = "true"
361
390
            return nodrivers
397
426
        elif version == ('12.04'):
398
427
            nodrivers = "true"
399
428
            return nodrivers
 
429
        elif version == ('12.10'):
 
430
            nodrivers = "true"
 
431
            return nodrivers
400
432
        else:
401
433
            nodrivers = "true"
402
434
            return nodrivers
437
469
        elif version == ('12.04'):
438
470
            nodrivers = "true"
439
471
            return nodrivers
 
472
        elif version == ('12.10'):
 
473
            nodrivers = "true"
 
474
            return nodrivers
440
475
        else:
441
476
            nodrivers = "true"
442
477
            return nodrivers
453
488
            return nodrivers
454
489
        elif version == ('12.04'):
455
490
            fprint.fingerprintGUI().describe()
 
491
        elif version == ('12.10'):
 
492
            fprint.fingerprintGUI().describe()
456
493
        else:
457
494
            nodrivers = "true"
458
495
            return nodrivers
460
497
        if version == ('12.04'):
461
498
            acpi.lemu1().describe()
462
499
            misc.realtek_rts_bpp().describe()
 
500
        elif version == ('12.10'):
 
501
            acpi.lemu1().describe()
 
502
            misc.realtek_rts_bpp().describe()
463
503
        else:
464
504
            nodrivers = "true"
465
505
            return nodrivers
503
543
        elif version == ('12.04'):
504
544
            nodrivers = "true"
505
545
            return nodrivers
 
546
        elif version == ('12.10'):
 
547
            nodrivers = "true"
 
548
            return nodrivers
506
549
        else:
507
550
            nodrivers = "true"
508
551
            return nodrivers
545
588
        elif version == ('12.04'):
546
589
            nodrivers = "true"
547
590
            return nodrivers
 
591
        elif version == ('12.10'):
 
592
            nodrivers = "true"
 
593
            return nodrivers
548
594
        else:
549
595
            nodrivers = "true"
550
596
            return nodrivers
586
632
        elif version == ('12.04'):
587
633
            nodrivers = "true"
588
634
            return nodrivers
 
635
        elif version == ('12.10'):
 
636
            nodrivers = "true"
 
637
            return nodrivers
589
638
        else:
590
639
            nodrivers = "true"
591
640
            return nodrivers
625
674
        elif version == ('12.04'):
626
675
            nodrivers = "true"
627
676
            return nodrivers
 
677
        elif version == ('12.10'):
 
678
            nodrivers = "true"
 
679
            return nodrivers
628
680
        else:
629
681
            nodrivers = "true"
630
682
            return nodrivers
656
708
        elif version == ('12.04'):
657
709
            uvc.quirks().describe()
658
710
            fprint.fingerprintGUI().describe()
 
711
        elif version == ('12.10'):
 
712
            uvc.quirks().describe()
 
713
            fprint.fingerprintGUI().describe()
659
714
        else:
660
715
            nodrivers = "true"
661
716
            return nodrivers
698
753
        elif version == ('12.04'):
699
754
            nodrivers = "true"
700
755
            return nodrivers
 
756
        elif version == ('12.10'):
 
757
            nodrivers = "true"
 
758
            return nodrivers
701
759
        else:
702
760
            nodrivers = "true"
703
761
            return nodrivers
720
778
            acpi.lemu1().describe()
721
779
        elif version == ('12.04'):
722
780
            acpi.lemu1().describe()
 
781
        elif version == ('12.10'):
 
782
            acpi.lemu1().describe()
723
783
        else:
724
784
            nodrivers = "true"
725
785
            return nodrivers
738
798
        elif version == ('12.04'):
739
799
            nodrivers = "true"
740
800
            return nodrivers
 
801
        elif version == ('12.10'):
 
802
            nodrivers = "true"
 
803
            return nodrivers
741
804
        else:
742
805
            nodrivers = "true"
743
806
            return nodrivers
748
811
            acpi.lemu1().describe()
749
812
        elif version == ('12.04'):
750
813
            acpi.lemu1().describe()
 
814
        elif version == ('12.10'):
 
815
            acpi.lemu1().describe()
751
816
        else:
752
817
            nodrivers = "true"
753
818
            return nodrivers
758
823
        elif version == ('12.04'):
759
824
            acpi.lemu1().describe()
760
825
            misc.realtek_rts_bpp().describe()
 
826
        elif version == ('12.10'):
 
827
            acpi.lemu1().describe()
 
828
            misc.realtek_rts_bpp().describe()
761
829
        else:
762
830
            nodrivers = "true"
763
831
            return nodrivers
783
851
        elif version == ('12.04'):
784
852
            nodrivers = "true"
785
853
            return nodrivers
 
854
        elif version == ('12.10'):
 
855
            nodrivers = "true"
 
856
            return nodrivers
786
857
        else:
787
858
            nodrivers = "true"
788
859
            return nodrivers
799
870
        elif version == ('12.04'):
800
871
            nodrivers = "true"
801
872
            return nodrivers
 
873
        elif version == ('12.10'):
 
874
            nodrivers = "true"
 
875
            return nodrivers
802
876
        else:
803
877
            nodrivers = "true"
804
878
            return nodrivers
809
883
        elif version == ('12.04'):
810
884
            nodrivers = "true"
811
885
            return nodrivers
 
886
        elif version == ('12.10'):
 
887
            nodrivers = "true"
 
888
            return nodrivers
812
889
        else:
813
890
            nodrivers = "true"
814
891
            return nodrivers
837
914
        elif version == ('12.04'):
838
915
            nodrivers = "true"
839
916
            return nodrivers
 
917
        elif version == ('12.10'):
 
918
            nodrivers = "true"
 
919
            return nodrivers
840
920
        else:
841
921
            nodrivers = "true"
842
922
            return nodrivers
862
942
        elif version == ('12.04'):
863
943
            nodrivers = "true"
864
944
            return nodrivers
 
945
        elif version == ('12.10'):
 
946
            nodrivers = "true"
 
947
            return nodrivers
865
948
        else:
866
949
            nodrivers = "true"
867
950
            return nodrivers
887
970
        elif version == ('12.04'):
888
971
            nodrivers = "true"
889
972
            return nodrivers
 
973
        elif version == ('12.10'):
 
974
            nodrivers = "true"
 
975
            return nodrivers
890
976
        else:
891
977
            nodrivers = "true"
892
978
            return nodrivers
900
986
        elif version == ('12.04'):
901
987
            nodrivers = "true"
902
988
            return nodrivers
 
989
        elif version == ('12.10'):
 
990
            nodrivers = "true"
 
991
            return nodrivers
903
992
        else:
904
993
            nodrivers = "true"
905
994
            return nodrivers
934
1023
        elif version == ('12.04'):
935
1024
            nodrivers = "true"
936
1025
            return nodrivers
 
1026
        elif version == ('12.10'):
 
1027
            nodrivers = "true"
 
1028
            return nodrivers
937
1029
        else:
938
1030
            nodrivers = "true"
939
1031
            return nodrivers
964
1056
            return nodrivers
965
1057
        elif version == ('12.04'):
966
1058
            fprint.fingerprintGUI().describe()
 
1059
        elif version == ('12.10'):
 
1060
            fprint.fingerprintGUI().describe()
967
1061
        else:
968
1062
            nodrivers = "true"
969
1063
            return nodrivers
994
1088
            return nodrivers
995
1089
        elif version == ('12.04'):
996
1090
            fprint.fingerprintGUI().describe()
 
1091
        elif version == ('12.10'):
 
1092
            fprint.fingerprintGUI().describe()
997
1093
        else:
998
1094
            nodrivers = "true"
999
1095
            return nodrivers
1024
1120
            return nodrivers
1025
1121
        elif version == ('12.04'):
1026
1122
            fprint.fingerprintGUI().describe()
 
1123
        elif version == ('12.10'):
 
1124
            fprint.fingerprintGUI().describe()
1027
1125
        else:
1028
1126
            nodrivers = "true"
1029
1127
            return nodrivers
1047
1145
            return nodrivers
1048
1146
        elif version == ('12.04'):
1049
1147
            fprint.fingerprintGUI().describe()
 
1148
        elif version == ('12.10'):
 
1149
            fprint.fingerprintGUI().describe()
1050
1150
        else:
1051
1151
            nodrivers = "true"
1052
1152
            return nodrivers
1058
1158
            acpi.lemu1().describe()
1059
1159
        elif version == ('12.04'):
1060
1160
            acpi.lemu1().describe()
 
1161
        elif version == ('12.10'):
 
1162
            acpi.lemu1().describe()
1061
1163
        else:
1062
1164
            nodrivers = "true"
1063
1165
            return nodrivers
1068
1170
        elif version == ('12.04'):
1069
1171
            acpi.lemu1().describe()
1070
1172
            misc.realtek_rts_bpp().describe()
 
1173
        elif version == ('12.10'):
 
1174
            acpi.lemu1().describe()
 
1175
            misc.realtek_rts_bpp().describe()
1071
1176
        else:
1072
1177
            nodrivers = "true"
1073
1178
            return nodrivers
1107
1212
        elif version == ('12.04'):
1108
1213
            nodrivers = "true"
1109
1214
            return nodrivers
 
1215
        elif version == ('12.10'):
 
1216
            nodrivers = "true"
 
1217
            return nodrivers
1110
1218
        else:
1111
1219
            nodrivers = "true"
1112
1220
            return nodrivers
1145
1253
        elif version == ('12.04'):
1146
1254
            nodrivers = "true"
1147
1255
            return nodrivers
 
1256
        elif version == ('12.10'):
 
1257
            nodrivers = "true"
 
1258
            return nodrivers
1148
1259
        else:
1149
1260
            nodrivers = "true"
1150
1261
            return nodrivers
1164
1275
        elif version == ('12.04'):
1165
1276
            nodrivers = "true"
1166
1277
            return nodrivers
 
1278
        elif version == ('12.10'):
 
1279
            nodrivers = "true"
 
1280
            return nodrivers
1167
1281
        else:
1168
1282
            nodrivers = "true"
1169
1283
            return nodrivers
1177
1291
        elif version == ('12.04'):
1178
1292
            nodrivers = "true"
1179
1293
            return nodrivers
 
1294
        elif version == ('12.10'):
 
1295
            nodrivers = "true"
 
1296
            return nodrivers
1180
1297
        else:
1181
1298
            nodrivers = "true"
1182
1299
            return nodrivers
1184
1301
        if version == ('12.04'):
1185
1302
            nodrivers = "true"
1186
1303
            return nodrivers
 
1304
        elif version == ('12.10'):
 
1305
            nodrivers = "true"
 
1306
            return nodrivers
1187
1307
        else:
1188
1308
            nodrivers = "true"
1189
1309
            return nodrivers
1226
1346
        elif version == ('12.04'):
1227
1347
            nodrivers = "true"
1228
1348
            return nodrivers
 
1349
        elif version == ('12.10'):
 
1350
            nodrivers = "true"
 
1351
            return nodrivers
1229
1352
        else:
1230
1353
            nodrivers = "true"
1231
1354
            return nodrivers
1268
1391
        elif version == ('12.04'):
1269
1392
            nodrivers = "true"
1270
1393
            return nodrivers
 
1394
        elif version == ('12.10'):
 
1395
            nodrivers = "true"
 
1396
            return nodrivers
1271
1397
        else:
1272
1398
            nodrivers = "true"
1273
1399
            return nodrivers
1310
1436
        elif version == ('12.04'):
1311
1437
            nodrivers = "true"
1312
1438
            return nodrivers
 
1439
        elif version == ('12.10'):
 
1440
            nodrivers = "true"
 
1441
            return nodrivers
1313
1442
        else:
1314
1443
            nodrivers = "true"
1315
1444
            return nodrivers
1343
1472
        elif version == ('12.04'):
1344
1473
            nodrivers = "true"
1345
1474
            return nodrivers
 
1475
        elif version == ('12.10'):
 
1476
            nodrivers = "true"
 
1477
            return nodrivers
1346
1478
        else:
1347
1479
            nodrivers = "true"
1348
1480
            return nodrivers
1374
1506
        elif version == ('12.04'):
1375
1507
            nodrivers = "true"
1376
1508
            return nodrivers
 
1509
        elif version == ('12.10'):
 
1510
            nodrivers = "true"
 
1511
            return nodrivers
1377
1512
        else:
1378
1513
            nodrivers = "true"
1379
1514
            return nodrivers
1405
1540
        elif version == ('12.04'):
1406
1541
            nodrivers = "true"
1407
1542
            return nodrivers
 
1543
        elif version == ('12.10'):
 
1544
            nodrivers = "true"
 
1545
            return nodrivers
1408
1546
        else:
1409
1547
            nodrivers = "true"
1410
1548
            return nodrivers
1447
1585
        elif version == ('12.04'):
1448
1586
            nodrivers = "true"
1449
1587
            return nodrivers
 
1588
        elif version == ('12.10'):
 
1589
            nodrivers = "true"
 
1590
            return nodrivers
1450
1591
        else:
1451
1592
            nodrivers = "true"
1452
1593
            return nodrivers
1488
1629
        elif version == ('12.04'):
1489
1630
            nodrivers = "true"
1490
1631
            return nodrivers
 
1632
        elif version == ('12.10'):
 
1633
            nodrivers = "true"
 
1634
            return nodrivers
1491
1635
        else:
1492
1636
            nodrivers = "true"
1493
1637
            return nodrivers
1522
1666
        elif version == ('12.04'):
1523
1667
            nodrivers = "true"
1524
1668
            return nodrivers
 
1669
        elif version == ('12.10'):
 
1670
            nodrivers = "true"
 
1671
            return nodrivers
1525
1672
        else:
1526
1673
            nodrivers = "true"
1527
1674
            return nodrivers
1563
1710
        elif version == ('12.04'):
1564
1711
            nodrivers = "true"
1565
1712
            return nodrivers
 
1713
        elif version == ('12.10'):
 
1714
            nodrivers = "true"
 
1715
            return nodrivers
1566
1716
        else:
1567
1717
            nodrivers = "true"
1568
1718
            return nodrivers
1604
1754
        elif version == ('12.04'):
1605
1755
            nodrivers = "true"
1606
1756
            return nodrivers
 
1757
        elif version == ('12.10'):
 
1758
            nodrivers = "true"
 
1759
            return nodrivers
1607
1760
        else:
1608
1761
            nodrivers = "true"
1609
1762
            return nodrivers
1645
1798
        elif version == ('12.04'):
1646
1799
            nodrivers = "true"
1647
1800
            return nodrivers
 
1801
        elif version == ('12.10'):
 
1802
            nodrivers = "true"
 
1803
            return nodrivers
1648
1804
        else:
1649
1805
            nodrivers = "true"
1650
1806
            return nodrivers
1686
1842
        elif version == ('12.04'):
1687
1843
            nodrivers = "true"
1688
1844
            return nodrivers
 
1845
        elif version == ('12.10'):
 
1846
            nodrivers = "true"
 
1847
            return nodrivers
1689
1848
        else:
1690
1849
            nodrivers = "true"
1691
1850
            return nodrivers
1713
1872
            return nodrivers
1714
1873
        elif version == ('12.04'):
1715
1874
            fprint.fingerprintGUI().describe()
 
1875
        elif version == ('12.10'):
 
1876
            fprint.fingerprintGUI().describe()
1716
1877
        else:
1717
1878
            nodrivers = "true"
1718
1879
            return nodrivers
1736
1897
            return nodrivers
1737
1898
        elif version == ('12.04'):
1738
1899
            fprint.fingerprintGUI().describe()
 
1900
        elif version == ('12.10'):
 
1901
            fprint.fingerprintGUI().describe()
1739
1902
        else:
1740
1903
            nodrivers = "true"
1741
1904
            return nodrivers
1752
1915
            return nodrivers
1753
1916
        elif version == ('12.04'):
1754
1917
            fprint.fingerprintGUI().describe()
 
1918
        elif version == ('12.10'):
 
1919
            fprint.fingerprintGUI().describe()
1755
1920
        else:
1756
1921
            nodrivers = "true"
1757
1922
            return nodrivers
1786
1951
            sound.alsa13().describe()
1787
1952
            acpi.star1().describe()
1788
1953
            misc.wireless8187b().describe()
 
1954
        elif version == ('12.10'):
 
1955
            sound.alsa13().describe()
 
1956
            acpi.star1().describe()
 
1957
            misc.wireless8187b().describe()
1789
1958
        else:
1790
1959
            nodrivers = "true"
1791
1960
            return nodrivers
1804
1973
        elif version == ('12.04'):
1805
1974
            nodrivers = "true"
1806
1975
            return nodrivers
 
1976
        elif version == ('12.10'):
 
1977
            nodrivers = "true"
 
1978
            return nodrivers
1807
1979
        else:
1808
1980
            nodrivers = "true"
1809
1981
            return nodrivers
1823
1995
        elif version == ('12.04'):
1824
1996
            nodrivers = "true"
1825
1997
            return nodrivers
 
1998
        elif version == ('12.10'):
 
1999
            nodrivers = "true"
 
2000
            return nodrivers
1826
2001
        else:
1827
2002
            nodrivers = "true"
1828
2003
            return nodrivers
1842
2017
        elif version == ('12.04'):
1843
2018
            nodrivers = "true"
1844
2019
            return nodrivers
 
2020
        elif version == ('12.10'):
 
2021
            nodrivers = "true"
 
2022
            return nodrivers
1845
2023
        else:
1846
2024
            nodrivers = "true"
1847
2025
            return nodrivers
1861
2039
        elif version == ('12.04'):
1862
2040
            nodrivers = "true"
1863
2041
            return nodrivers
 
2042
        elif version == ('12.10'):
 
2043
            nodrivers = "true"
 
2044
            return nodrivers
1864
2045
        else:
1865
2046
            nodrivers = "true"
1866
2047
            return nodrivers
1885
2066
        elif version == ('12.04'):
1886
2067
            nodrivers = "true"
1887
2068
            return nodrivers
 
2069
        elif version == ('12.10'):
 
2070
            nodrivers = "true"
 
2071
            return nodrivers
1888
2072
        else:
1889
2073
            nodrivers = "true"
1890
2074
            return nodrivers
1898
2082
        elif version == ('12.04'):
1899
2083
            nodrivers = "true"
1900
2084
            return nodrivers
 
2085
        elif version == ('12.10'):
 
2086
            nodrivers = "true"
 
2087
            return nodrivers
1901
2088
        else:
1902
2089
            nodrivers = "true"
1903
2090
            return nodrivers
1941
2128
        elif version == ('12.04'):
1942
2129
            nodrivers = "true"
1943
2130
            return nodrivers
 
2131
        elif version == ('12.10'):
 
2132
            nodrivers = "true"
 
2133
            return nodrivers
1944
2134
        else:
1945
2135
            nodrivers = "true"
1946
2136
            return nodrivers
1984
2174
        elif version == ('12.04'):
1985
2175
            nodrivers = "true"
1986
2176
            return nodrivers
 
2177
        elif version == ('12.10'):
 
2178
            nodrivers = "true"
 
2179
            return nodrivers
1987
2180
        else:
1988
2181
            nodrivers = "true"
1989
2182
            return nodrivers
2027
2220
        elif version == ('12.04'):
2028
2221
            nodrivers = "true"
2029
2222
            return nodrivers
 
2223
        elif version == ('12.10'):
 
2224
            nodrivers = "true"
 
2225
            return nodrivers
2030
2226
        else:
2031
2227
            nodrivers = "true"
2032
2228
            return nodrivers
2064
2260
        elif version == ('12.04'):
2065
2261
            nodrivers = "true"
2066
2262
            return nodrivers
 
2263
        elif version == ('12.10'):
 
2264
            nodrivers = "true"
 
2265
            return nodrivers
2067
2266
        else:
2068
2267
            nodrivers = "true"
2069
2268
            return nodrivers
2092
2291
        elif version == ('12.04'):
2093
2292
            nodrivers = "true"
2094
2293
            return nodrivers
 
2294
        elif version == ('12.10'):
 
2295
            nodrivers = "true"
 
2296
            return nodrivers
2095
2297
        else:
2096
2298
            nodrivers = "true"
2097
2299
            return nodrivers
2114
2316
        elif version == ('12.04'):
2115
2317
            nodrivers = "true"
2116
2318
            return nodrivers
 
2319
        elif version == ('12.10'):
 
2320
            nodrivers = "true"
 
2321
            return nodrivers
2117
2322
        else:
2118
2323
            nodrivers = "true"
2119
2324
            return nodrivers
2130
2335
        elif version == ('12.04'):
2131
2336
            nodrivers = "true"
2132
2337
            return nodrivers
 
2338
        elif version == ('12.10'):
 
2339
            nodrivers = "true"
 
2340
            return nodrivers
2133
2341
        else:
2134
2342
            nodrivers = "true"
2135
2343
            return nodrivers
2137
2345
        if version == ('12.04'):
2138
2346
            nodrivers = "true"
2139
2347
            return nodrivers
 
2348
        elif version == ('12.10'):
 
2349
            nodrivers = "true"
 
2350
            return nodrivers
2140
2351
        else:
2141
2352
            nodrivers = "true"
2142
2353
            return nodrivers