diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-24 22:44:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-24 22:44:36 +0000 |
commit | 30c7933f23ea30ce7e8177aea431e6a53aa5f915 (patch) | |
tree | e8dc632beac87c3b34b31a1b4c329bcd05c7eefb /modules/admin-core/root | |
parent | 4538b12895af0f95bfd728de53391ceaa895dd08 (diff) |
* luci/modules/admin-core: make sure luci_hosts is executed before dnsmasq
Diffstat (limited to 'modules/admin-core/root')
-rwxr-xr-x | modules/admin-core/root/etc/init.d/luci_hosts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/admin-core/root/etc/init.d/luci_hosts b/modules/admin-core/root/etc/init.d/luci_hosts index d01bfbbd5..3c1034a6e 100755 --- a/modules/admin-core/root/etc/init.d/luci_hosts +++ b/modules/admin-core/root/etc/init.d/luci_hosts @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -START=60 +START=59 apply_host() { local cfg="$1" @@ -8,7 +8,7 @@ apply_host() { config_get ipaddr "$cfg" ipaddr [ -n "$hostname" -a -n "$ipaddr" ] || return 0 - + echo "$ipaddr $hostname" >> /var/etc/hosts } @@ -20,15 +20,15 @@ start() { test -d /var/etc || mkdir -p /var/etc test -f /etc/hosts.local && cat /etc/hosts.local >> /var/etc/hosts - + config_load luci_hosts config_foreach apply_host host - + return 0 } stop() { test -f /var/etc/hosts && rm -f /var/etc/hosts - + return 0 } |