debug.cfg 8.27 KB
Newer Older
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
#
# VTLANG_TEMP_SETTING must be the first
# 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
    }
    
    menuentry "[ $VTOY_LINUX_REMOUNT ]  $VTLANG_LINUX_REMOUNT" --class=debug_temp_linux_remount --class=debug_temp_set --class=F5tool \
        VTOY_RUN_SET1 {
        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 \
        VTOY_RUN_SET2 {
        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 {
longpanda's avatar
longpanda committed
77
78
        terminal_output console
    }
79
    menuentry "$VTLANG_SCREEN_GUI_MODE" --class=debug_gui_mode --class=debug_screen_mode --class=F5tool {
longpanda's avatar
longpanda committed
80
81
        terminal_output gfxterm
    }
82
83
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
84
85
86
    }
}

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

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

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

longpanda's avatar
longpanda committed
117

118
119
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
120
        set pager=1
longpanda's avatar
longpanda committed
121
        vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
longpanda's avatar
longpanda committed
122
        
123
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
124
125
126
127
        read vtInputKey
        unset pager
    }
    
128
    menuentry "$VTLANG_JSON_CHK_THEME" --class=debug_theme --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 theme $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_AUTOINS" --class=debug_autoinstall --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 auto_install $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_PERSIST" --class=debug_persistence --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 persistence $vtoy_iso_part
longpanda's avatar
longpanda committed
149
150
151
152
        
        echo -e "\n############### dump persistence ###############"
        vt_dump_persistence
        
153
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
154
155
156
157
        read vtInputKey
        unset pager
    }
    
158
    menuentry "$VTLANG_JSON_CHK_MENU_ALIAS" --class=debug_menualias --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
159
        set pager=1
longpanda's avatar
longpanda committed
160
        vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
longpanda's avatar
longpanda committed
161
        
162
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
163
        read vtInputKey
longpanda's avatar
longpanda committed
164
165
166
        unset pager
    }
    
167
    menuentry "$VTLANG_JSON_CHK_MENU_TIP" --class=debug_menutip --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
168
169
170
        set pager=1
        vt_check_plugin_json $vt_plugin_path menu_tip $vtoy_iso_part
        
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_CLASS" --class=debug_menuclass --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
177
        set pager=1
longpanda's avatar
longpanda committed
178
        vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
longpanda's avatar
longpanda committed
179
        
180
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
181
182
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
183
184
    }  

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

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

203
    menuentry "$VTLANG_JSON_CHK_IMG_LIST" --class=debug_imagelist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
204
205
206
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_list $vtoy_iso_part
        
207
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
208
209
210
        read vtInputKey
        unset pager
    }
longpanda's avatar
longpanda committed
211
    
212
    menuentry "$VTLANG_JSON_CHK_IMG_BLIST" --class=debug_imageblacklist --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
213
214
215
        set pager=1
        vt_check_plugin_json $vt_plugin_path image_blacklist $vtoy_iso_part
        
216
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
217
218
219
220
        read vtInputKey
        unset pager
    }
    
221
    menuentry "$VTLANG_JSON_CHK_CONF_REPLACE" --class=debug_bootconf_replace --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
222
223
224
        set pager=1
        vt_check_plugin_json $vt_plugin_path conf_replace $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_DUD" --class=debug_dud --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
231
232
233
        set pager=1
        vt_check_plugin_json $vt_plugin_path dud $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_PASSWORD" --class=debug_pwd --class=debug_json --class=F5tool {
longpanda's avatar
longpanda committed
240
241
242
        set pager=1
        vt_check_plugin_json $vt_plugin_path password $vtoy_iso_part
        
243
        echo -en "\n$VTLANG_ENTER_EXIT ..."
longpanda's avatar
longpanda committed
244
245
246
247
        read vtInputKey
        unset pager
    }
    
248
249
    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
        echo "Return ..."
longpanda's avatar
longpanda committed
250
251
252
    }
}

longpanda's avatar
update  
longpanda committed
253

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