You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
427 B
19 lines
427 B
##
|
|
# start guessing the system type via uname and export it.
|
|
#
|
|
gather_host_info() {
|
|
[ -z "${OS}" ] || return
|
|
|
|
OS="$(${UNAME} -o)"
|
|
KERNEL="$(${UNAME} -s)"
|
|
VERSION="$(${UNAME} -r)"
|
|
PLATFORM="$(${UNAME} -m)"
|
|
HOSTNAME="$(${UNAME} -n)"
|
|
GNU="$([ "${OS%GNU*}" != ${OS} ] && echo "GNU")"
|
|
|
|
export OS KERNEL VERSION PLATFORM HOSTNAME
|
|
|
|
set_class ${OS} ${GNU} ${KERNEL} ${VERSION} ${PLATFORM} ${HOSTNAME}
|
|
}
|
|
|
|
# vim: set ts=4 sw=4:
|