* luci/contrib/luci-addons: always create /var/etc in luci_ethers, fixes #113 - thanks KanjiMonster!
This commit is contained in:
parent
85461e4226
commit
8a1b678504
1 changed files with 2 additions and 1 deletions
|
@ -15,10 +15,11 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue