2001-03-24 11:09:53 +00:00
|
|
|
--- client/scripts/freebsd.orig Thu Mar 22 07:59:28 2001
|
|
|
|
+++ client/scripts/freebsd Sat Mar 24 04:50:11 2001
|
|
|
|
@@ -16,17 +16,17 @@
|
2000-06-25 21:08:08 +00:00
|
|
|
# Must be used on exit. Invokes the local dhcp client exit hooks, if any.
|
|
|
|
exit_with_hooks() {
|
|
|
|
exit_status=$1
|
|
|
|
- if [ -x /etc/dhclient-exit-hooks ]; then
|
|
|
|
- . /etc/dhclient-exit-hooks
|
|
|
|
+ if [ -x !!PREFIX!!/etc/dhclient-exit-hooks ]; then
|
|
|
|
+ . !!PREFIX!!/etc/dhclient-exit-hooks
|
|
|
|
fi
|
|
|
|
# probably should do something with exit status of the local script
|
|
|
|
exit $exit_status
|
|
|
|
}
|
|
|
|
|
|
|
|
# Invoke the local dhcp client enter hooks, if they exist.
|
|
|
|
-if [ -x /etc/dhclient-enter-hooks ]; then
|
|
|
|
+if [ -x !!PREFIX!!/etc/dhclient-enter-hooks ]; then
|
|
|
|
exit_status=0
|
|
|
|
- . /etc/dhclient-enter-hooks
|
|
|
|
+ . !!PREFIX!!/etc/dhclient-enter-hooks
|
|
|
|
# allow the local script to abort processing of this state
|
|
|
|
# local script must set exit_status variable to nonzero.
|
|
|
|
if [ $exit_status -ne 0 ]; then
|
2001-03-24 11:09:53 +00:00
|
|
|
@@ -35,11 +35,11 @@
|
2000-06-25 21:08:08 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ x$new_network_number != x ]; then
|
2001-03-24 11:09:53 +00:00
|
|
|
- $LOGGER New Network Number: $new_network_number
|
|
|
|
+ $LOGGER "New Network Number: $new_network_number"
|
2000-06-25 21:08:08 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ x$new_broadcast_address != x ]; then
|
2001-03-24 11:09:53 +00:00
|
|
|
- $LOGGER New Broadcast Address: $new_broadcast_address
|
|
|
|
+ $LOGGER "New Broadcast Address: $new_broadcast_address"
|
2000-06-25 21:08:08 +00:00
|
|
|
new_broadcast_arg="broadcast $new_broadcast_address"
|
|
|
|
fi
|
|
|
|
if [ x$old_broadcast_address != x ]; then
|
2001-03-24 11:09:53 +00:00
|
|
|
@@ -158,7 +158,7 @@
|
2001-02-17 14:17:30 +00:00
|
|
|
shift; shift
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
- arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
|
|
|
|
+ arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' \
|
|
|
|
|sh >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
if [ x$alias_ip_address != x ]; then
|