From bf1e1d2a4937bfaded2cdf18080db4a5febdb8db Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 10 Aug 1999 07:16:00 +0000 Subject: [PATCH] Check to see if /usr/bin/logger exists before using it. Use "echo" if /usr/bin/logger is not available. Noticed from: error messages in -CURRENT's sysinstall Alt-F2 debug screen --- contrib/isc-dhcp/client/scripts/freebsd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index 65720e47dbf0..c4f5320528e9 100755 --- a/contrib/isc-dhcp/client/scripts/freebsd +++ b/contrib/isc-dhcp/client/scripts/freebsd @@ -1,6 +1,10 @@ #!/bin/sh -LOGGER="/usr/bin/logger -s -p user.notice -t dhclient" +if [ -x /usr/bin/logger ]; then + LOGGER="/usr/bin/logger -s -p user.notice -t dhclient" +else + LOGGER=echo +fi make_resolv_conf() { echo search $new_domain_name >/etc/resolv.conf