Add etherhosts as combination of luci_ethers and luci_hosts

This commit is contained in:
Steven Barth 2009-10-28 16:40:05 +00:00
parent 910f48117f
commit 5d9fcbd1c1
3 changed files with 4 additions and 0 deletions

View file

@ -23,7 +23,9 @@ start() {
echo "# This file is autogenerated, use /etc/ethers.local instead" > /var/etc/ethers
config_load luci_ethers
config_load luci_etherhosts
config_foreach apply_lease static_lease
config_foreach apply_lease entry
test -f /etc/ethers.local && cat /etc/ethers.local >> /var/etc/ethers

View file

@ -24,7 +24,9 @@ start() {
test -f /etc/hosts.local && cat /etc/hosts.local >> /var/etc/hosts
config_load luci_hosts
config_load luci_etherhosts
config_foreach apply_host host
config_foreach apply_host entry
return 0
}