Skip to content

Instantly share code, notes, and snippets.

@16pxdesign
Created November 22, 2021 15:52
Show Gist options
  • Save 16pxdesign/dab193db02a104fa1d79d59c524df026 to your computer and use it in GitHub Desktop.
Save 16pxdesign/dab193db02a104fa1d79d59c524df026 to your computer and use it in GitHub Desktop.
Ventoy auto search images on all hard drives
{
"control": [
{ "VTOY_MENU_TIMEOUT": "60" },
{ "VTOY_DEFAULT_IMAGE": "F6>My boot menu" }
],
"theme": {
"display_mode": "CLI"
}
}
insmod regexp
for pth in (*)/*vhdx; do
regexp --set=img_path '^\(.*\)\/(.*$)' "$pth"
menuentry "$img_path" "$pth" {
echo "$2"
vhdboot_common_func "$2"
}
done
for pth in (*)/*vtoy; do
regexp --set=img_path '^\(.*\)\/(.*$)' "$pth"
menuentry "$img_path" "$pth" {
echo "$2"
vtoyboot_common_func "$2"
}
done
menuentry '<-- Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
echo 'Return ...'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment