[CFR] reflect resolv.conf update to running application
Jeremie Le Hen
jeremie at le-hen.org
Mon Aug 22 16:02:09 GMT 2005
Hi Hajimu-san,
> If /usr/bin/cmp does not exist, The whole test will fail, then it will
> work as heretofore. So, I think we don't need to test if /usr/bin/cmp
> exists.
> However, if /usr/bin/cmp does not exist, error message will out. So,
> we need to supress it as following:
>
> if cmp -s /etc/resolv.conf.std /etc/resolv.conf; then
> rm -f /etc/resolv.conf.std
> return 0
> fi 2>/dev/null
It would be good to put a comment in front of this block to explain
this, or it has good chances to generates some mails in the future.
Thanks.
Regards,
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
More information about the freebsd-arch
mailing list