- Timestamp:
- May 25, 2010, 5:58:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/files/usr/local/etc/rc.d/maradns
r8003 r8036 18 18 # Nastly hack to allow the MaraDNS bind to the proper variable IP address 19 19 mara_pre() { 20 IP=`ifconfig ${internalif} | grep 'inet' | awk '{ print $2 }' | sed 's/\./\\\./g'`21 sed -i .orig "s/^ipv4_bind_addresses=.*/ipv4_bind_addresses=\"$IP, 127.0.0.1\"/" /usr/local/etc/mararc20 IP=`ifconfig ${internalif} | awk '/inet/ { print $2 }'` 21 sed -i .orig 's/^\(ipv4_bind_addresses[\ \t=]*"\).*$/\1'${IP}' 127.0.0.1"/g' ${maradns_conf} 22 22 } 23 23
Note:
See TracChangeset
for help on using the changeset viewer.