Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
37ca36a71114a6fc5303d33cabc311cd8b9bf19a
/
.
/
testsuite
/
hostid
/
hostid-works
blob: bcfd717af42bb14a8a3c1e6b5749c11796af452b [
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?
3
x
=
"${h//[0123456789abcdef]/x}"
4
x
=
"${x//xxx/x}"
5
x
=
"${x//xxx/x}"
6
x
=
"${x//xxx/x}"
7
x
=
"${x//xx/x}"
8
test x
"$x"
=
x
"x"