Changeset 8003 for 2.0/nanobsd


Ignore:
Timestamp:
May 24, 2010, 9:24:34 PM (15 years ago)
Author:
rick
Message:

Does not support IP changes, more robust apoach

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/files/usr/local/etc/rc.d/maradns

    r7697 r8003  
    1616
    1717
     18# Nastly hack to allow the MaraDNS bind to the proper variable IP address
    1819mara_pre() {
    1920  IP=`ifconfig ${internalif} | grep 'inet' | awk '{ print $2 }' | sed 's/\./\\\./g'`
    20   sed -i .orig "s/\<internalif\>/$IP/g" /usr/local/etc/mararc
     21  sed -i .orig "s/^ipv4_bind_addresses=.*/ipv4_bind_addresses=\"$IP, 127.0.0.1\"/" /usr/local/etc/mararc
    2122}
    2223
Note: See TracChangeset for help on using the changeset viewer.