debug.cfg 6.93 KB
Newer Older
longpanda's avatar
longpanda committed
1

longpanda's avatar
longpanda committed
2
3
4
submenu "@VTMENU_MENU_LANG" --class=debug_menu_lang --class=F5tool {
    source $prefix/menulang.cfg
}
longpanda's avatar
longpanda committed
5
source $prefix/power.cfg
6
source $prefix/hwinfo.cfg
7
source $prefix/keyboard.cfg
longpanda's avatar
longpanda committed
8

9
10
submenu "@VTMENU_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
    menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
11
12
13
14
15
16
17
18
19
20
21
22
23
        echo 'Return ...'
    }
    
    vt_update_cur_video_mode VT_CUR_MODE
    set vdid=0
    while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
        vt_get_video_mode $vdid vtCurMode
        
        unset vtActive
        if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
            set vtActive="[*]"
        fi
        
longpanda's avatar
longpanda committed
24
        menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
longpanda's avatar
longpanda committed
25
26
27
28
29
30
31
32
33
            terminal_output console
            set gfxmode=$1
            terminal_output gfxterm
        }

        vt_incr vdid 1
    done
}

34
35
submenu "@VTMENU_SCREEN_MODE" --class=debug_screen_mode --class=F5tool {
    menuentry '@VTMENU_SCREEN_TEXT_MODE' --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
36
37
        terminal_output console
    }
38
    menuentry '@VTMENU_SCREEN_GUI_MODE' --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
39
40
        terminal_output gfxterm
    }
41
    menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
42
43
44
45
        echo 'Return ...'
    }
}

46
47
if [ -n "$VTOY_THEME_COUNT" -a $VTOY_THEME_COUNT -gt 1 ]; then
    submenu "@VTMENU_THEME_SELECT" --class=debug_theme_select --class=F5tool {
48
49
50
51
        vt_select_theme_cfg
    }
fi

longpanda's avatar
longpanda committed
52
if [ "$grub_platform" != "pc" ]; then
longpanda's avatar
longpanda committed
53
    submenu 'Ventoy UEFI Utilities' --class=debug_util --class=F5tool {
54
        menuentry '@VTMENU_UTIL_SHOW_EFI_DRV' --class=debug_util_efidrv --class=debug_util --class=F5tool {
55
56
57
58
59
60
61
62
            vt_push_pager
            chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=show_efi_drivers
            boot
            vt_pop_pager
            echo -e "\npress ENTER to exit ..."
            read vtInputKey
        }
        
63
        menuentry '@VTMENU_UTIL_FIX_BLINIT_FAIL' --class=debug_util_blinit --class=debug_util --class=F5tool {
longpanda's avatar
longpanda committed
64
65
66
67
68
69
            chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
            boot
            echo -e "\npress ENTER to exit ..."
            read vtInputKey
        }

70
        menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
71
72
73
74
75
            echo 'Return ...'
        }
    }
fi

longpanda's avatar
longpanda committed
76

77
78
submenu '@VTMENU_JSON_CHK_JSON' --class=debug_json --class=F5tool {
    menuentry '@VTMENU_JSON_CHK_CONTROL' --class=debug_control --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
79
        set pager=1
longpanda's avatar
longpanda committed
80
        vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
longpanda's avatar
longpanda committed
81
82
83
84
85
86
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
87
    menuentry '@VTMENU_JSON_CHK_THEME' --class=debug_theme --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
88
        set pager=1
longpanda's avatar
longpanda committed
89
        vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
longpanda's avatar
longpanda committed
90
91
92
93
94
95
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
96
    menuentry '@VTMENU_JSON_CHK_AUTOINS' --class=debug_autoinstall --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
97
        set pager=1
longpanda's avatar
longpanda committed
98
        vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
longpanda's avatar
longpanda committed
99
100
101
102
103
104
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
105
    menuentry '@VTMENU_JSON_CHK_PERSIST' --class=debug_persistence --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
106
        set pager=1
longpanda's avatar
longpanda committed
107
        vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
longpanda's avatar
longpanda committed
108
109
110
111
112
113
114
115
116
        
        echo -e "\n############### dump persistence ###############"
        vt_dump_persistence
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
117
    menuentry '@VTMENU_JSON_CHK_MENU_ALIAS' --class=debug_menualias --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
118
        set pager=1
longpanda's avatar
longpanda committed
119
        vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
longpanda's avatar
longpanda committed
120
121
122
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
longpanda's avatar
longpanda committed
123
124
125
        unset pager
    }
    
126
    menuentry '@VTMENU_JSON_CHK_MENU_TIP' --class=debug_menutip --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
127
128
129
130
131
        set pager=1
        vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
longpanda's avatar
longpanda committed
132
133
134
        unset pager
    }
    
135
    menuentry '@VTMENU_JSON_CHK_MENU_CLASS' --class=debug_menuclass --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
136
        set pager=1
longpanda's avatar
longpanda committed
137
        vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
longpanda's avatar
longpanda committed
138
139
140
141
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
142
143
    }  

144
    menuentry '@VTMENU_JSON_CHK_INJECTION' --class=debug_injection --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
145
146
147
        set pager=1
        vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
        
longpanda's avatar
longpanda committed
148
149
150
151
152
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    } 

153
    menuentry '@VTMENU_JSON_CHK_AUTO_MEMDISK' --class=debug_automemdisk --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
154
155
156
        set pager=1
        vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
        
longpanda's avatar
longpanda committed
157
158
159
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
160
161
    }  

162
    menuentry '@VTMENU_JSON_CHK_IMG_LIST' --class=debug_imagelist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
163
164
165
166
167
168
169
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
longpanda's avatar
longpanda committed
170
    
171
    menuentry '@VTMENU_JSON_CHK_IMG_BLIST' --class=debug_imageblacklist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
172
173
174
175
176
177
178
179
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
180
    menuentry '@VTMENU_JSON_CHK_CONF_REPLACE' --class=debug_bootconf_replace --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
181
182
183
184
185
186
187
188
        set pager=1
        vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
189
    menuentry '@VTMENU_JSON_CHK_DUD' --class=debug_dud --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
190
191
192
193
194
195
196
197
        set pager=1
        vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
198
    menuentry '@VTMENU_JSON_CHK_PASSWORD' --class=debug_pwd --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
199
200
201
202
203
204
205
206
        set pager=1
        vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
207
    menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
208
209
210
211
        echo 'Return ...'
    }
}

longpanda's avatar
update  
longpanda committed
212

213
menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
214
215
    echo 'Return ...'
}