* 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,9 +15,10 @@ apply_lease() {
|
||||||
start() {
|
start() {
|
||||||
if [ ! -L /etc/ethers ]; then
|
if [ ! -L /etc/ethers ]; then
|
||||||
test -f /etc/ethers && mv /etc/ethers /etc/ethers.local
|
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
|
ln -s /var/etc/ethers /etc/ethers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
test -d /var/etc || mkdir -p /var/etc
|
||||||
|
|
||||||
config_load luci_ethers
|
config_load luci_ethers
|
||||||
config_foreach apply_lease static_lease
|
config_foreach apply_lease static_lease
|
||||||
|
|
Loading…
Reference in a new issue