Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
d3dbf4ac05e969b6648faea282df6dec7051e315
/
.
/
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