mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 08:21:14 +00:00
Optimization for FreeBSD distro.
This commit is contained in:
@@ -129,6 +129,9 @@ function get_os_type {
|
||||
elif [ -e (loop)/bin/freebsd-version ]; then
|
||||
set vtoy_os=Unix
|
||||
set vt_unix_type=FreeBSD
|
||||
elif [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
|
||||
set vtoy_os=Unix
|
||||
set vt_unix_type=FreeBSD
|
||||
elif vt_str_begin "$vt_system_id" "DragonFly"; then
|
||||
set vtoy_os=Unix
|
||||
set vt_unix_type=DragonFly
|
||||
@@ -469,6 +472,10 @@ function ventoy_freebsd_proc {
|
||||
set vt_freebsd_ver=9.x
|
||||
fi
|
||||
|
||||
if [ -e (loop)/boot/kernel/geom_ventoy.ko ]; then
|
||||
vt_unix_ko_fillmap /boot/kernel/geom_ventoy.ko
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -e (loop)/usr/freebsd-dist/cloninst.sh ]; then
|
||||
set vtFreeBsdDistro=ClonOS
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user