3
0

hostname-d-works 82 B

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