summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/hostid
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/hostid')
-rw-r--r--etc/rc.d/hostid4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/hostid b/etc/rc.d/hostid
index 2ba4398..6673aa0 100644
--- a/etc/rc.d/hostid
+++ b/etc/rc.d/hostid
@@ -56,8 +56,8 @@ hostid_set()
hostid_hardware()
{
- uuid=`kenv smbios.system.uuid 2>/dev/null`
- x="[0-9a-zA-Z]"
+ uuid=`kenv smbios.system.uuid 2>/dev/null | tr '[:upper:]' '[:lower:]'`
+ x="[0-9a-f]"
y=$x$x$x$x
case "${uuid}" in
$y$y-$y-$y-$y-$y$y$y)
OpenPOWER on IntegriCloud