[CFR] reflect resolv.conf update to running application
Dag-Erling Smørgrav
des at des.no
Mon Aug 22 13:04:46 GMT 2005
Hajimu UMEMOTO <ume at freebsd.org> writes:
> + if diff /etc/resolv.conf.std /etc/resolv.conf >/dev/null 2>&1; then
> + rm -f /etc/resolv.conf.std
> + return 0
> + fi
> +
use 'cmp -s' instead of diff. It returns 0 when the files are
identical, 1 when they differ and 2 when one of the files does not
exist or is not readable, and never prints anything.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-arch
mailing list