Commit f78e46eb authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv: use distro_vendor -i instead of virt detection

parent 9fc9ddb9
...@@ -130,17 +130,11 @@ $(get_help HELPOPT) ...@@ -130,17 +130,11 @@ $(get_help HELPOPT)
" "
} }
detect_virt()
{
which systemd-detect-virt >/dev/null 2>/dev/null || return
a= systemd-detect-virt
}
print_version() print_version()
{ {
local on_text="(host system)" local on_text="(host system)"
local virt="$(detect_virt)" local virt="$($DISTRVENDOR -i)"
[ "$virt" = "none" ] || [ "$virt" = "" ] || on_text="(under $virt)" [ "$virt" = "(unknown)" ] || [ "$virt" = "(host system)" ] || on_text="(under $virt)"
echo "Service manager version @VERSION@" echo "Service manager version @VERSION@"
echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE" echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE"
echo "Copyright (c) Etersoft 2012-2019" echo "Copyright (c) Etersoft 2012-2019"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment