aboutsummaryrefslogtreecommitdiff
path: root/testsuite/hostid/hostid-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/hostid/hostid-works')
-rw-r--r--testsuite/hostid/hostid-works10
1 files changed, 4 insertions, 6 deletions
diff --git a/testsuite/hostid/hostid-works b/testsuite/hostid/hostid-works
index bcfd717af..8c20bdfcc 100644
--- a/testsuite/hostid/hostid-works
+++ b/testsuite/hostid/hostid-works
@@ -1,8 +1,6 @@
1h=x$(busybox hostid) 1h=x$(busybox hostid)
2# Is $h a sequence of hex numbers? 2# Is $h a sequence of hex numbers?
3x="${h//[0123456789abcdef]/x}" 3case "$h" in
4x="${x//xxx/x}" 4 x*[!0-9a-f]*) false;;
5x="${x//xxx/x}" 5 *) true;;
6x="${x//xxx/x}" 6esac
7x="${x//xx/x}"
8test x"$x" = x"x"