summaryrefslogtreecommitdiffhomepage
path: root/testsuite/hostid/hostid-works
blob: 8c20bdfcc68a38e1832d7b60f345549d1cb53117 (plain)
1
2
3
4
5
6
h=x$(busybox hostid)
# Is $h a sequence of hex numbers?
case "$h" in
 x*[!0-9a-f]*) false;;
 *) true;;
esac