Improved portability of tests

Removed assumptions about umask and locale. Fixed hostname
tests to work even when the host has no DNS domain set.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Dan Fandrich
2010-08-10 23:33:57 -07:00
committed by Denys Vlasenko
parent f03fc7d77a
commit 775965de85
8 changed files with 24 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
f=$(busybox hostname -f)
f=$(busybox hostname -f).
d=$(busybox hostname -d)
test x"${f#*.}" = x"$d"
test x"${f#*.}" = x"$d${d:+.}"