diff options
Diffstat (limited to 'misc-utils/sparc-solaris-hostid.sh')
-rwxr-xr-x | misc-utils/sparc-solaris-hostid.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/misc-utils/sparc-solaris-hostid.sh b/misc-utils/sparc-solaris-hostid.sh new file mode 100755 index 000000000..7ce28ac5e --- /dev/null +++ b/misc-utils/sparc-solaris-hostid.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# This script reproduces the output of the Solaris hostid program. +# It might be put in /usr/bin/hostid or so. +# Note that the hostid program does not have any known uses +# and does not exist on other architectures. +# Copyright 1999 Peter Jones, <pjones@redhat.com> . +# GPL and all that good stuff apply. +( +idprom=`cat /proc/openprom/idprom` +echo $idprom|dd bs=1 skip=2 count=2 +echo $idprom|dd bs=1 skip=27 count=6 +echo +) 2>/dev/null |