diff options
author | obrien <obrien@FreeBSD.org> | 1999-08-04 05:46:11 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-08-04 05:46:11 +0000 |
commit | 272402a72fb5d2e5b3931d0146d43b3604f8e558 (patch) | |
tree | a3213df5b62b140977a53438144f1c3f101c8744 | |
parent | 83e5e22607eca479fb2ed7f788a962799cf9fd3b (diff) | |
download | FreeBSD-src-272402a72fb5d2e5b3931d0146d43b3604f8e558.zip FreeBSD-src-272402a72fb5d2e5b3931d0146d43b3604f8e558.tar.gz |
MFS: use logger(1) instead of plain echo(1).
(some how these local changes made it out of my local tree into the
repository, so lets do it right)
-rwxr-xr-x | contrib/isc-dhcp/client/scripts/freebsd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/isc-dhcp/client/scripts/freebsd b/contrib/isc-dhcp/client/scripts/freebsd index b3b7397..8fdbda9 100755 --- a/contrib/isc-dhcp/client/scripts/freebsd +++ b/contrib/isc-dhcp/client/scripts/freebsd @@ -1,5 +1,7 @@ #!/bin/sh +LOGGER="/usr/bin/logger -s -p user.notice -t dhclient" + make_resolv_conf() { echo search $new_domain_name >/etc/resolv.conf for nameserver in $new_domain_name_servers; do @@ -29,17 +31,18 @@ if [ -x /etc/dhclient-enter-hooks ]; then fi if [ x$new_network_number != x ]; then - echo New Network Number: $new_network_number + $LOGGER New Network Number: $new_network_number fi if [ x$new_broadcast_address != x ]; then - echo New Broadcast Address: $new_broadcast_address + $LOGGER New Broadcast Address: $new_broadcast_address new_broadcast_arg="broadcast $new_broadcast_address" fi if [ x$old_broadcast_address != x ]; then old_broadcast_arg="broadcast $old_broadcast_address" fi if [ x$new_subnet_mask != x ]; then + $LOGGER New Subnet Mask for $interface: $new_subnet_mask new_netmask_arg="netmask $new_subnet_mask" fi if [ x$old_subnet_mask != x ]; then @@ -108,6 +111,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ route add default $router >/dev/null 2>&1 done if [ "$new_static_routes" != "" ]; then + $LOGGER New Static Routes: $new_static_routes set $new_static_routes while [ $# -gt 1 ]; do route add $1 $2 @@ -164,6 +168,7 @@ if [ x$reason = xTIMEOUT ]; then $new_broadcast_arg $medium sleep 1 if [ "$new_routers" != "" ]; then + $LOGGER New Routers: $new_routers set $new_routers if ping -q -c 1 $1; then if [ x$new_ip_address != x$alias_ip_address ] && \ |