mirror of
https://github.com/sheumann/hush.git
synced 2024-12-24 12:29:47 +00:00
afa63b2dcd
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>
7 lines
108 B
Plaintext
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
|