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