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