mirror of
https://git.busybox.net/busybox
synced 2025-05-11 21:23:47 +02:00
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>
6 lines
108 B
Text
6 lines
108 B
Text
h=x$(busybox hostid)
|
|
# Is $h a sequence of hex numbers?
|
|
case "$h" in
|
|
x*[!0-9a-f]*) false;;
|
|
*) true;;
|
|
esac
|