Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
ad4e961352f04ba88019c4c2bb36c652ce9c51fa
/
.
/
testsuite
/
hostid
/
hostid-works
blob: 8c20bdfcc68a38e1832d7b60f345549d1cb53117 [
file
] [
log
] [
blame
]
Denys Vlasenko
e82cf33
2010-05-12 15:59:32 +0200
[
diff
] [
blame
]
1
h
=
x$
(
busybox hostid
)
2
# Is $h a sequence of hex numbers?
Michael Tokarev
afa63b2
2013-11-10 22:01:38 +0100
[
diff
] [
blame
]
3
case
"$h"
in
4
x
*[!
0
-
9a
-
f
]*)
false
;;
5
*)
true
;;
6
esac