diff options
Diffstat (limited to 'testsuite/hostid')
-rw-r--r-- | testsuite/hostid/hostid-works | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/testsuite/hostid/hostid-works b/testsuite/hostid/hostid-works index bcfd717..8c20bdf 100644 --- a/testsuite/hostid/hostid-works +++ b/testsuite/hostid/hostid-works @@ -1,8 +1,6 @@ h=x$(busybox hostid) # Is $h a sequence of hex numbers? -x="${h//[0123456789abcdef]/x}" -x="${x//xxx/x}" -x="${x//xxx/x}" -x="${x//xxx/x}" -x="${x//xx/x}" -test x"$x" = x"x" +case "$h" in + x*[!0-9a-f]*) false;; + *) true;; +esac |