summaryrefslogtreecommitdiff
path: root/net/isc-dhcp30-server/files/patch-freebsd
blob: 61a0e0c093a8cc45846eb4654df89509661815fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- 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 @@
 # Must be used on exit.   Invokes the local dhcp client exit hooks, if any.
 exit_with_hooks() {
   exit_status=$1
-  if [ -f /etc/dhclient-exit-hooks ]; then
-    . /etc/dhclient-exit-hooks
+  if [ -f %%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 [ -f /etc/dhclient-enter-hooks ]; then
+if [ -f %%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
@@ -39,11 +39,11 @@
 fi
 
 if [ x$new_network_number != x ]; then
-   $LOGGER New Network Number: $new_network_number
+  $LOGGER "New Network Number: $new_network_number"
 fi
 
 if [ x$new_broadcast_address != x ]; then
- $LOGGER 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