Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/testsuite/hostid/hostid-works
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (8 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/testsuite/hostid/hostid-works
r2725 r3621 1 1 h=x$(busybox hostid) 2 2 # Is $h a sequence of hex numbers? 3 x="${h//[0123456789abcdef]/x}" 4 x="${x//xxx/x}" 5 x="${x//xxx/x}" 6 x="${x//xxx/x}" 7 x="${x//xx/x}" 8 test x"$x" = x"x" 3 case "$h" in 4 x*[!0-9a-f]*) false;; 5 *) true;; 6 esac
Note:
See TracChangeset
for help on using the changeset viewer.