add openRuyi in osdetection

Signed-off-by: BH1SCW <kongfanjun@iscas.ac.cn>
This commit is contained in:
BH1SCW 2025-12-12 15:49:49 +08:00
parent b85cd6b266
commit 18ee1216c0

View file

@ -412,6 +412,12 @@
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
"openruyi")
LINUX_VERSION="openRuyi Creek"
OS_NAME="openRuyi Creek"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
"opensuse-tumbleweed")
LINUX_VERSION="openSUSE Tumbleweed"
# It's rolling release but has a snapshot version (the date of the snapshot)