Add etherhosts as combination of luci_ethers and luci_hosts
This commit is contained in:
parent
910f48117f
commit
5d9fcbd1c1
3 changed files with 4 additions and 0 deletions
0
modules/admin-core/root/etc/config/luci_etherhosts
Normal file
0
modules/admin-core/root/etc/config/luci_etherhosts
Normal 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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue