modules/admin-core: add autogeneartion notice to /var/etc/hosts, /var/etc/ethers

This commit is contained in:
Jo-Philipp Wich 2009-01-28 18:17:41 +00:00
parent 515ac3e6fe
commit 4b62df0945
2 changed files with 9 additions and 5 deletions

View File

@ -20,6 +20,8 @@ start() {
test -d /var/etc || mkdir -p /var/etc
echo "# This file is autogenerated, use /etc/ethers.local instead" > /var/etc/ethers
config_load luci_ethers
config_foreach apply_lease static_lease

View File

@ -18,6 +18,8 @@ start() {
ln -s /var/etc/hosts /etc/hosts
fi
echo "# This file is autogenerated, use /etc/hosts.local instead" > /var/etc/hosts
test -d /var/etc || mkdir -p /var/etc
test -f /etc/hosts.local && cat /etc/hosts.local >> /var/etc/hosts