Ver Fonte

include the network state in the dnsmasq init script. this makes it possible to run a dhcp server on dynamically assigned interfaces without hardcoding interface names

SVN-Revision: 7805
Felix Fietkau há 18 anos atrás
pai
commit
687b83af00
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      package/dnsmasq/files/dnsmasq.init

+ 1 - 0
package/dnsmasq/files/dnsmasq.init

@@ -58,6 +58,7 @@ dhcp_add() {
 start() {
 start() {
 	include /lib/network
 	include /lib/network
 	scan_interfaces
 	scan_interfaces
+	config_load /var/state/network
 	config_load dhcp
 	config_load dhcp
 
 
 	args=""
 	args=""