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

2
source $prefix/menulang.cfg
longpanda's avatar
longpanda committed
3
source $prefix/power.cfg
4
source $prefix/hwinfo.cfg
5
source $prefix/keyboard.cfg
longpanda's avatar
longpanda committed
6

7
8
submenu "@VTMENU_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
    menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
9
10
11
12
13
14
15
16
17
18
19
20
21
        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
22
        menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
longpanda's avatar
longpanda committed
23
24
25
26
27
28
29
30
31
            terminal_output console
            set gfxmode=$1
            terminal_output gfxterm
        }

        vt_incr vdid 1
    done
}

32
33
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
34
35
        terminal_output console
    }
36
    menuentry '@VTMENU_SCREEN_GUI_MODE' --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
37
38
        terminal_output gfxterm
    }
39
    menuentry '@VTMENU_RETURN_PREVIOUS' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
40
41
42
43
        echo 'Return ...'
    }
}

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

longpanda's avatar
longpanda committed
50
if [ "$grub_platform" != "pc" ]; then
longpanda's avatar
longpanda committed
51
    submenu 'Ventoy UEFI Utilities' --class=debug_util --class=F5tool {
52
        menuentry '@VTMENU_UTIL_SHOW_EFI_DRV' --class=debug_util_efidrv --class=debug_util --class=F5tool {
53
54
55
56
57
58
59
60
            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
        }
        
61
        menuentry '@VTMENU_UTIL_FIX_BLINIT_FAIL' --class=debug_util_blinit --class=debug_util --class=F5tool {
longpanda's avatar
longpanda committed
62
63
64
65
66
67
            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
        }

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

longpanda's avatar
longpanda committed
74

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

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

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

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

longpanda's avatar
update  
longpanda committed
210

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