diff --git a/neofetch b/neofetch index 48b96d21..0053f55b 100755 --- a/neofetch +++ b/neofetch @@ -1346,6 +1346,10 @@ get_model() { Solaris) model=$(prtconf -b | awk -F':' '/banner-name/ {printf $2}') + virt=$(/usr/bin/uname -V) + if [ $? == 0 ] && [ "$virt" != "non-virtualized" ]; then + model="${model:-$(uname -i)} (${virt})" + fi ;; AIX) @@ -1408,6 +1412,15 @@ get_kernel() { return } + [[ $os == Solaris ]] && { + ver=$(uname -v) + case $ver in + 11.[0123]) ;; + *) kernel=${ver} ;; + esac + return + } + case $kernel_shorthand in on) kernel=$kernel_version ;; off) kernel="$kernel_name $kernel_version" ;;