diff options
author | obrien <obrien@FreeBSD.org> | 1999-08-10 07:16:00 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-08-10 07:16:00 +0000 |
commit | bf1e1d2a4937bfaded2cdf18080db4a5febdb8db (patch) | |
tree | b0e829667e70b1ccc73217a6d41d5ecbceb71165 /contrib | |
parent | bedbde67f9d8aaa2cfc9543034594c777c88681f (diff) | |
download | FreeBSD-src-bf1e1d2a4937bfaded2cdf18080db4a5febdb8db.zip FreeBSD-src-bf1e1d2a4937bfaded2cdf18080db4a5febdb8db.tar.gz |
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
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/isc-dhcp/client/scripts/freebsd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index 65720e4..c4f5320 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 |