samba: add file/interface reload triggers & filter interfaces
authorConn O'Griofa <connogriofa@gmail.com>
Thu, 4 Aug 2016 00:31:50 +0000 (01:31 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 15 Aug 2016 13:18:35 +0000 (15:18 +0200)
commit63f6fc5c16996cc47369bb0d6ef28ccd39845e7b
tree10b13e56ee8aff33abc6db53a09e6029c5ea2e17
parentd1b20a36590b185a649d2b4c040d81e506224487
samba: add file/interface reload triggers & filter interfaces

* Only parse interfaces that are up during init_config (as the
  script depends on this to determine the proper IP/subnet range)
* Add reload interface triggers for samba-designated interfaces
* Force full service restart upon config change to ensure Samba
  binds to new interfaces (sending HUP signal doesn't work)
* Rename "interface" variable to "samba_iface" and move into
  global scope

Needed to fix Samba connectivity for clients connecting from a
different LAN subnet (e.g. pseudobridge configurations) due to the
'bind interfaces only' setting.

Signed-off-by: Conn O'Griofa <connogriofa@gmail.com>
package/network/services/samba36/files/samba.init