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  
    44# This script was tested on OpenBSD, but it is likely to work on other BSDs as well.
    55
    66version="v0.2.3-openbsd"
    7 LOGFILE=/var/lib/dibbler/client-notify-bsd.log
     7LOGFILE=@@PREFIX@@/var/lib/dibbler/client-notify-bsd.log
    88
    99# uncomment this to get full list of available variables
    1010set >> $LOGFILE
     
    7171
    7272if [ -n "$PREFIX1" ]; then
    7373    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'`
    7575    ifconfig $PREFIXIFACE inet6 "$PREFIX1"1 prefixlen $PREFIX1LEN
    7676fi
    7777