This website requires JavaScript.
Explore
Help
Register
Sign In
emo
/
busybox
Watch
1
Star
0
Fork
0
You've already forked busybox
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b0e8ced358
busybox
/
testsuite
/
hostname
/
hostname-d-works
4 lines
82 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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>
2010-08-11 12:03:57 +05:30
f=$(busybox hostname -f).
randomtest fixes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-12 19:29:32 +05:30
d=$(busybox hostname -d)
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>
2010-08-11 12:03:57 +05:30
test x"${f#*.}" = x"$d${d:+.}"
Reference in New Issue
Copy Permalink