# -*-Shell-script-*-
#
# functions     This file contains functions shared by few X11 scripts
#               machine_id also exists in /etc/init.d/functions but some
#               people don't use initscripts anymore
#

machine_id() { # return the machine ID
	awk 'BEGIN { FS=": " } /Hardware/ \
		{ gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
}
