summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorrea <rea@FreeBSD.org>2012-01-20 17:19:50 +0000
committerrea <rea@FreeBSD.org>2012-01-20 17:19:50 +0000
commit64180fcce0d869d0ecf44c5a7dd233f97353ec22 (patch)
tree2c81c8779c3fc85ce5bf1d35394a809f37458b46 /etc
parent0aae67830d90ccea9ede836cb93d4872e3858114 (diff)
downloadFreeBSD-src-64180fcce0d869d0ecf44c5a7dd233f97353ec22.zip
FreeBSD-src-64180fcce0d869d0ecf44c5a7dd233f97353ec22.tar.gz
dhclient: don't use syslog for logging non-DHCP interface errors
We should show the error to user, but it doesn't deserve syslog. Approved by: jhb
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/dhclient4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient
index d61923d..8fe0931 100755
--- a/etc/rc.d/dhclient
+++ b/etc/rc.d/dhclient
@@ -25,11 +25,11 @@ dhclient_pre_check()
local msg
msg="'$ifn' is not a DHCP-enabled interface"
if [ -z "${rc_quiet}" ]; then
- err 1 "$msg"
+ echo "$msg"
else
debug "$msg"
- exit 1
fi
+ exit 1
fi
}
OpenPOWER on IntegriCloud