-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.py
61 lines (50 loc) · 1.48 KB
/
configure.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from Alimod.troysrc import LocalModConfigpacman, DefconfigPacman, MenuconfigPacman
from Alimod.versions import Version
from Alimod import clean
#import .home/ali/Ai-Hoshino/lib/python3.13/site-packages/idna
def main():
clean.clean()
print("What version of linux Do you want to install? \n")
print("(0) Release Linux 6.14")
print("(1) Stable Linux 6.13")
print("(2) LTS Linux 6.12")
# print("(3) LTS Linux 6.6")
# print("(4) LTS Linux 6.1")
try:
version = int(input(">>"))
except ValueError:
print("error pick a valid shit")
return 2
if version >= 5:
print("error. pick a valid shit")
return 9
if version == 0:
vername = Version.linuxrc()
elif version == 1:
vername = Version.linux613()
print(vername)
elif version == 2:
vername = Version.linux612()
print("how do you want to start configure your kernel? \n")
print("(0) default from /proc/config.gz")
print("(1) manual")
print("(2) based on modules/feature that are used by this machine(make sure to turn on every mod you need)")
how = int(input(">>"))
if how == 0:
DefconfigPacman(vername)
elif how == 1:
MenuconfigPacman(vername)
elif how == 2:
LocalModConfigpacman(vername)
try:
main()
except KeyboardInterrupt:
print("canceled")
#
# pacman()
'''
elif version == 3:
vername = Version.linux66()
elif version == 4:
vername = Version.linux61()
'''