debug.cfg 8.34 KB
Newer Older
1
#
2
# VTLANG_CTRL_TEMP_SET must be the first
3
4
5
6
7
8
9
10
11
12
13
14
# And the inside item order can not be changed
#
submenu "$VTLANG_CTRL_TEMP_SET" --class=debug_temp_set --class=F5tool {
    menuentry "[ $VTOY_WIN11_BYPASS_CHECK ]  $VTLANG_WIN11_BYPASS_CHECK" --class=debug_temp_win11_bypass --class=debug_temp_set --class=F5tool \
        VTOY_RUN_SET0 {
        if [ "$VTOY_WIN11_BYPASS_CHECK" = "0" ]; then
            set VTOY_WIN11_BYPASS_CHECK=1
        else
            set VTOY_WIN11_BYPASS_CHECK=0
        fi
    }
    
15
    menuentry "[ $VTOY_WIN11_BYPASS_NRO ]  $VTLANG_WIN11_BYPASS_NRO" --class=debug_temp_win11_nro --class=debug_temp_set --class=F5tool \
16
        VTOY_RUN_SET1 {
17
18
19
20
21
        if [ "$VTOY_WIN11_BYPASS_NRO" = "0" ]; then
            set VTOY_WIN11_BYPASS_NRO=1
        else
            set VTOY_WIN11_BYPASS_NRO=0
        fi
longpanda's avatar
1.1.01  
longpanda committed
22
    }    
23
24
    
    menuentry "[ $VTOY_SECONDARY_BOOT_MENU ]  $VTLANG_SECONDARY_BOOT_MENU" --class=debug_temp_second_menu --class=debug_temp_set --class=F5tool \
25
        VTOY_RUN_SET3 {
26
27
28
29
30
31
32
33
34
35
36
37
        if [ "$VTOY_SECONDARY_BOOT_MENU" = "0" ]; then
            set VTOY_SECONDARY_BOOT_MENU=1
        else
            set VTOY_SECONDARY_BOOT_MENU=0
        fi
    }

    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
    }
}

longpanda's avatar
longpanda committed
38

39
submenu "$VTLANG_MENU_LANG" --class=debug_menu_lang --class=F5tool {
longpanda's avatar
longpanda committed
40
41
    source $prefix/menulang.cfg
}
42

longpanda's avatar
longpanda committed
43
source $prefix/power.cfg
44
source $prefix/hwinfo.cfg
45
source $prefix/keyboard.cfg
longpanda's avatar
longpanda committed
46

47
48
49
submenu "$VTLANG_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
50
51
52
53
54
55
56
57
58
59
60
61
    }
    
    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
62
        menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
longpanda's avatar
longpanda committed
63
64
            terminal_output console
            set gfxmode=$1
65
66
67
68
            terminal_output gfxterm            
            if [ "$vtoy_res_fit" = "1" ]; then
                vt_set_theme switch
            fi
longpanda's avatar
longpanda committed
69
70
71
72
73
74
        }

        vt_incr vdid 1
    done
}

75
76
submenu "$VTLANG_SCREEN_MODE" --class=debug_screen_mode --class=F5tool {
    menuentry "$VTLANG_SCREEN_TEXT_MODE" --class=debug_text_mode --class=debug_screen_mode --class=F5tool {
77
        vt_push_menu_lang en_US
longpanda's avatar
longpanda committed
78
79
        terminal_output console
    }
80
    menuentry "$VTLANG_SCREEN_GUI_MODE" --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
81
        terminal_output gfxterm
82
        vt_pop_menu_lang
longpanda's avatar
longpanda committed
83
    }
84
85
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
86
87
88
    }
}

89
if [ -n "$VTOY_THEME_COUNT" -a $VTOY_THEME_COUNT -gt 1 ]; then
90
    submenu "$VTLANG_THEME_SELECT" --class=debug_theme_select --class=F5tool {
91
92
93
94
        vt_select_theme_cfg
    }
fi

longpanda's avatar
longpanda committed
95
if [ "$grub_platform" != "pc" ]; then
96
97
    submenu "$VTLANG_UEFI_UTIL" --class=debug_util --class=F5tool {
        menuentry "$VTLANG_UTIL_SHOW_EFI_DRV" --class=debug_util_efidrv --class=debug_util --class=F5tool {
98
99
100
101
            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
102
            echo -en "\n$VTLANG_ENTER_EXIT ..."
103
104
105
            read vtInputKey
        }
        
106
        menuentry "$VTLANG_UTIL_FIX_BLINIT_FAIL" --class=debug_util_blinit --class=debug_util --class=F5tool {
longpanda's avatar
longpanda committed
107
108
            chainloader ${vtoy_path}/vtoyutil_${VTOY_EFI_ARCH}.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
            boot
109
            echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
110
111
112
            read vtInputKey
        }

113
114
        menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
            echo "Return ..."
longpanda's avatar
longpanda committed
115
116
117
118
        }
    }
fi

longpanda's avatar
longpanda committed
119

120
121
submenu "$VTLANG_JSON_CHK_JSON" --class=debug_json --class=F5tool {
    menuentry "$VTLANG_JSON_CHK_CONTROL" --class=debug_control --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
122
        set pager=1
longpanda's avatar
longpanda committed
123
        vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
longpanda's avatar
longpanda committed
124
        
125
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
126
127
128
129
        read vtInputKey
        unset pager
    }
    
130
    menuentry "$VTLANG_JSON_CHK_THEME" --class=debug_theme --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
131
        set pager=1
longpanda's avatar
longpanda committed
132
        vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
longpanda's avatar
longpanda committed
133
        
134
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
135
136
137
138
        read vtInputKey
        unset pager
    }
    
139
    menuentry "$VTLANG_JSON_CHK_AUTOINS" --class=debug_autoinstall --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
140
        set pager=1
longpanda's avatar
longpanda committed
141
        vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
longpanda's avatar
longpanda committed
142
        
143
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
144
145
146
147
        read vtInputKey
        unset pager
    }
    
148
    menuentry "$VTLANG_JSON_CHK_PERSIST" --class=debug_persistence --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
149
        set pager=1
longpanda's avatar
longpanda committed
150
        vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
longpanda's avatar
longpanda committed
151
152
153
154
        
        echo -e "\n############### dump persistence ###############"
        vt_dump_persistence
        
155
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
156
157
158
159
        read vtInputKey
        unset pager
    }
    
160
    menuentry "$VTLANG_JSON_CHK_MENU_ALIAS" --class=debug_menualias --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
161
        set pager=1
longpanda's avatar
longpanda committed
162
        vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
longpanda's avatar
longpanda committed
163
        
164
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
165
        read vtInputKey
longpanda's avatar
longpanda committed
166
167
168
        unset pager
    }
    
169
    menuentry "$VTLANG_JSON_CHK_MENU_TIP" --class=debug_menutip --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
170
171
172
        set pager=1
        vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
        
173
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
174
        read vtInputKey
longpanda's avatar
longpanda committed
175
176
177
        unset pager
    }
    
178
    menuentry "$VTLANG_JSON_CHK_MENU_CLASS" --class=debug_menuclass --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
179
        set pager=1
longpanda's avatar
longpanda committed
180
        vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
longpanda's avatar
longpanda committed
181
        
182
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
183
184
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
185
186
    }  

187
    menuentry "$VTLANG_JSON_CHK_INJECTION" --class=debug_injection --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
188
189
190
        set pager=1
        vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
        
191
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
192
193
194
195
        read vtInputKey
        unset pager
    } 

196
    menuentry "$VTLANG_JSON_CHK_AUTO_MEMDISK" --class=debug_automemdisk --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
197
198
199
        set pager=1
        vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
        
200
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
201
202
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
203
204
    }  

205
    menuentry "$VTLANG_JSON_CHK_IMG_LIST" --class=debug_imagelist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
206
207
208
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
        
209
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
210
211
212
        read vtInputKey
        unset pager
    }
longpanda's avatar
longpanda committed
213
    
214
    menuentry "$VTLANG_JSON_CHK_IMG_BLIST" --class=debug_imageblacklist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
215
216
217
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
        
218
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
219
220
221
222
        read vtInputKey
        unset pager
    }
    
223
    menuentry "$VTLANG_JSON_CHK_CONF_REPLACE" --class=debug_bootconf_replace --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
224
225
226
        set pager=1
        vt_check_plugin_json $vt_plugin_path conf_replace $vtoy_iso_part
        
227
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
228
229
230
231
        read vtInputKey
        unset pager
    }
    
232
    menuentry "$VTLANG_JSON_CHK_DUD" --class=debug_dud --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
233
234
235
        set pager=1
        vt_check_plugin_json $vt_plugin_path dud $vtoy_iso_part
        
236
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
237
238
239
240
        read vtInputKey
        unset pager
    }
    
241
    menuentry "$VTLANG_JSON_CHK_PASSWORD" --class=debug_pwd --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
242
243
244
        set pager=1
        vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
        
245
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
246
247
248
249
        read vtInputKey
        unset pager
    }
    
250
251
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
252
253
254
    }
}

longpanda's avatar
update  
longpanda committed
255

256
257
menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
    echo "Return ..."
longpanda's avatar
longpanda committed
258
}