debug.cfg 8.6 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
22
23
24
25
        if [ "$VTOY_WIN11_BYPASS_NRO" = "0" ]; then
            set VTOY_WIN11_BYPASS_NRO=1
        else
            set VTOY_WIN11_BYPASS_NRO=0
        fi
    }
    
    menuentry "[ $VTOY_LINUX_REMOUNT ]  $VTLANG_LINUX_REMOUNT" --class=debug_temp_linux_remount --class=debug_temp_set --class=F5tool \
        VTOY_RUN_SET2 {
26
27
28
29
30
31
32
33
        if [ "$VTOY_LINUX_REMOUNT" = "0" ]; then
            set VTOY_LINUX_REMOUNT=1
        else
            set VTOY_LINUX_REMOUNT=0
        fi
    }
    
    menuentry "[ $VTOY_SECONDARY_BOOT_MENU ]  $VTLANG_SECONDARY_BOOT_MENU" --class=debug_temp_second_menu --class=debug_temp_set --class=F5tool \
34
        VTOY_RUN_SET3 {
35
36
37
38
39
40
41
42
43
44
45
46
        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
47

48
submenu "$VTLANG_MENU_LANG" --class=debug_menu_lang --class=F5tool {
longpanda's avatar
longpanda committed
49
50
    source $prefix/menulang.cfg
}
51

longpanda's avatar
longpanda committed
52
source $prefix/power.cfg
53
source $prefix/hwinfo.cfg
54
source $prefix/keyboard.cfg
longpanda's avatar
longpanda committed
55

56
57
58
submenu "$VTLANG_RESOLUTION_CFG" --class=debug_resolution --class=F5tool {
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
59
60
61
62
63
64
65
66
67
68
69
70
    }
    
    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
71
        menuentry "$vtCurMode $vtActive" --class=debug_videomode --class=debug_resolution --class=F5tool VTOY_RUN_RET {
longpanda's avatar
longpanda committed
72
73
            terminal_output console
            set gfxmode=$1
74
75
76
77
            terminal_output gfxterm            
            if [ "$vtoy_res_fit" = "1" ]; then
                vt_set_theme switch
            fi
longpanda's avatar
longpanda committed
78
79
80
81
82
83
        }

        vt_incr vdid 1
    done
}

84
85
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 {
longpanda's avatar
longpanda committed
86
87
        terminal_output console
    }
88
    menuentry "$VTLANG_SCREEN_GUI_MODE" --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
89
90
        terminal_output gfxterm
    }
91
92
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
93
94
95
    }
}

96
if [ -n "$VTOY_THEME_COUNT" -a $VTOY_THEME_COUNT -gt 1 ]; then
97
    submenu "$VTLANG_THEME_SELECT" --class=debug_theme_select --class=F5tool {
98
99
100
101
        vt_select_theme_cfg
    }
fi

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

120
121
        menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
            echo "Return ..."
longpanda's avatar
longpanda committed
122
123
124
125
        }
    }
fi

longpanda's avatar
longpanda committed
126

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

194
    menuentry "$VTLANG_JSON_CHK_INJECTION" --class=debug_injection --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
195
196
197
        set pager=1
        vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
        
198
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
199
200
201
202
        read vtInputKey
        unset pager
    } 

203
    menuentry "$VTLANG_JSON_CHK_AUTO_MEMDISK" --class=debug_automemdisk --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
204
205
206
        set pager=1
        vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
        
207
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
208
209
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
210
211
    }  

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

longpanda's avatar
update  
longpanda committed
262

263
264
menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
    echo "Return ..."
longpanda's avatar
longpanda committed
265
}