Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
busybox
/
refs/tags/fp2-sibon-18.02.0
/
.
/
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?
maxwen
27116ba
2015-08-14 21:41:28 +0200
[
diff
] [
blame
]
3
case
"$h"
in
4
x
*[!
0
-
9a
-
f
]*)
false
;;
5
*)
true
;;
6
esac