2002-04-19 20:59:21 +00:00
|
|
|
--- client/scripts/freebsd.orig Tue Feb 19 17:59:35 2002
|
|
|
|
+++ client/scripts/freebsd Mon Apr 15 15:31:21 2002
|
|
|
|
@@ -20,17 +20,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
|
2001-04-22 11:59:08 +00:00
|
|
|
- if [ -f /etc/dhclient-exit-hooks ]; then
|
2000-06-25 21:08:08 +00:00
|
|
|
- . /etc/dhclient-exit-hooks
|
2001-10-15 13:33:15 +00:00
|
|
|
+ if [ -f %%PREFIX%%/etc/dhclient-exit-hooks ]; then
|
|
|
|
+ . %%PREFIX%%/etc/dhclient-exit-hooks
|
2000-06-25 21:08:08 +00:00
|
|
|
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.
|
2001-04-22 11:59:08 +00:00
|
|
|
-if [ -f /etc/dhclient-enter-hooks ]; then
|
2001-10-15 13:33:15 +00:00
|
|
|
+if [ -f %%PREFIX%%/etc/dhclient-enter-hooks ]; then
|
2000-06-25 21:08:08 +00:00
|
|
|
exit_status=0
|
|
|
|
- . /etc/dhclient-enter-hooks
|
2001-10-15 13:33:15 +00:00
|
|
|
+ . %%PREFIX%%/etc/dhclient-enter-hooks
|
2000-06-25 21:08:08 +00:00
|
|
|
# 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
|
2002-04-19 20:59:21 +00:00
|
|
|
@@ -39,11 +39,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
|