Ticket #39602: patch-scripts-notify-scripts-client-notify-bsd.sh.diff
File patch-scripts-notify-scripts-client-notify-bsd.sh.diff, 983 bytes (added by fclaire@…, 11 years ago) |
---|
-
scripts/notify-scripts/client-notify-bsd.sh
old new 4 4 # This script was tested on OpenBSD, but it is likely to work on other BSDs as well. 5 5 6 6 version="v0.2.3-openbsd" 7 LOGFILE= /var/lib/dibbler/client-notify-bsd.log7 LOGFILE=@@PREFIX@@/var/lib/dibbler/client-notify-bsd.log 8 8 9 9 # uncomment this to get full list of available variables 10 10 set >> $LOGFILE … … 71 71 72 72 if [ -n "$PREFIX1" ]; then 73 73 echo "Prefix ${PREFIX1} (operation $1) to client $REMOTE_ADDR on inteface $IFACE/$IFINDEX" >> $LOGFILE 74 PREFIXIFACE=`cat /etc/dibbler/client.conf | grep -i downlink | grep -v -e '^#' | awk -F" " '{ print $2; }' | sed 's/\"//g'`74 PREFIXIFACE=`cat @@PREFIX@@/etc/dibbler/client.conf | grep -i downlink | grep -v -e '^#' | awk -F" " '{ print $2; }' | sed 's/\"//g'` 75 75 ifconfig $PREFIXIFACE inet6 "$PREFIX1"1 prefixlen $PREFIX1LEN 76 76 fi 77 77