if [ -n "$(uname -r)" ] && [ -z "$kernel" ]; then kernel="$(uname -s) $(uname -r)" fi if [ -n "$(uname -s)" ] && [ -z "$kernel" ]; then kernel="$(uname -s)" fi if [ "$system_type" = "illumos" ]; then kernel="$(uname -v)" fi