mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
1.0.19 release
This commit is contained in:
@@ -47,6 +47,12 @@ ventoy_get_os_type() {
|
||||
echo "kernel version" >> $VTLOG
|
||||
$CAT /proc/version >> $VTLOG
|
||||
|
||||
if [ -d /twres ]; then
|
||||
if $GREP -q 'Phoenix' /init; then
|
||||
echo 'phoenixos'; return
|
||||
fi
|
||||
fi
|
||||
|
||||
# rhel5/CentOS5 and all other distributions based on them
|
||||
if $GREP -q 'el5' /proc/version; then
|
||||
echo 'rhel5'; return
|
||||
@@ -93,6 +99,10 @@ ventoy_get_os_type() {
|
||||
|
||||
# gentoo
|
||||
elif $EGREP -q '[Gg]entoo' /proc/version; then
|
||||
if $GREP -q 'daphile' /proc/version; then
|
||||
echo 'daphile'; return
|
||||
fi
|
||||
|
||||
echo 'gentoo'; return
|
||||
|
||||
# TinyCore
|
||||
@@ -119,10 +129,14 @@ ventoy_get_os_type() {
|
||||
elif $GREP -q 'Alpine' /proc/version; then
|
||||
echo 'alpine'; return
|
||||
|
||||
elif $GREP -i -q 'PhoenixOS' /proc/version; then
|
||||
echo 'phoenixos'; return
|
||||
|
||||
# NixOS
|
||||
elif $GREP -i -q 'NixOS' /proc/version; then
|
||||
echo 'nixos'; return
|
||||
|
||||
|
||||
fi
|
||||
|
||||
if [ -e /lib/debian-installer ]; then
|
||||
@@ -231,6 +245,10 @@ ventoy_get_os_type() {
|
||||
echo 'hyperbola'; return
|
||||
fi
|
||||
|
||||
if $GREP -q 'CRUX' /proc/version; then
|
||||
echo 'crux'; return
|
||||
fi
|
||||
|
||||
echo "default"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user