forked from vladfau/walker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuItems.py
56 lines (43 loc) · 955 Bytes
/
MenuItems.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
def main_menu():
return """DEFAULT menu.c32
PROMPT 0
MENU TITLE Mirror Walker
LABEL bootlocal
MENU DEFAULT
MENU LABEL Local Boot
TEXT HELP
This will exit from the network boot menu and attempt
to boot from local media (hard disk, DVD, etc)
ENDTEXT
localboot 0x80\n
"""
#menu of distributives
def footer():
return """LABEL uplvl
MENU LABEL Back
KERNEL menu.c32
APPEND %s
TEXT HELP
Go back
ENDTEXT
"""
def submenu_header():
return """PROMPT 0
MENU TITLE %s
MENU LABEL ^%s
"""
def submenu_value():
return """LABEL %s
KERNEL menu.c32
APPEND %s\n"""
def finalmenu_label():
return """LABEL boot
MENU LABEL Boot this\n"""
def submenu_helper():
return """\tTEXT HELP
Go to this submenu
ENDTEXT\n"""
def finalmenu_helper():
return """\tTEXT HELP
Selecting this will boot this image
ENDTEXT\n"""