* luci/contrib/luci-addons: always create /var/etc in luci_ethers, fixes #113 - thanks KanjiMonster!

This commit is contained in:
Jo-Philipp Wich 2008-09-03 22:33:53 +00:00
parent 85461e4226
commit 8a1b678504

View file

@ -15,9 +15,10 @@ apply_lease() {
start() {
if [ ! -L /etc/ethers ]; then
test -f /etc/ethers && mv /etc/ethers /etc/ethers.local
test -d /var/etc || mkdir -p /var/etc
ln -s /var/etc/ethers /etc/ethers
fi
test -d /var/etc || mkdir -p /var/etc
config_load luci_ethers
config_foreach apply_lease static_lease