hush/testsuite/hostid/hostid-works
Michael Tokarev afa63b2dcd fix bashisms in testsuite/
These places use ${var/search/replace}, $((n++) and
`type -p' constructs which are not-so-standard.
Replace with equivalent constructs.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-11-10 22:06:06 +01:00

7 lines
108 B
Plaintext

h=x$(busybox hostid)
# Is $h a sequence of hex numbers?
case "$h" in
x*[!0-9a-f]*) false;;
*) true;;
esac