[OpenWrt-Devel] [PATCH] samba36: Enable umdnsd support

Rosen Penev rosenp at gmail.com
Thu Aug 16 22:32:59 EDT 2018


Allows discovery without having to use NetBIOS. Useful for mobile devices.

Could eventually throw nbmd away. But that requires Windows 10...

Tested on Fedora 28 with avahi-discover.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 package/network/services/samba36/Makefile         | 2 +-
 package/network/services/samba36/files/samba.init | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/network/services/samba36/Makefile b/package/network/services/samba36/Makefile
index 75705d0..b4322f0 100644
--- a/package/network/services/samba36/Makefile
+++ b/package/network/services/samba36/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=samba
 PKG_VERSION:=3.6.25
-PKG_RELEASE:=11
+PKG_RELEASE:=12
 
 PKG_SOURCE_URL:=https://download.samba.org/pub/samba \
 		https://download.samba.org/pub/samba/stable
diff --git a/package/network/services/samba36/files/samba.init b/package/network/services/samba36/files/samba.init
index ae0e0e2..1c5bb3b 100755
--- a/package/network/services/samba36/files/samba.init
+++ b/package/network/services/samba36/files/samba.init
@@ -101,6 +101,7 @@ start_service() {
 	init_config
 
 	procd_open_instance
+	procd_add_mdns "smb" "tcp" "445"
 	procd_set_param command /usr/sbin/smbd -F
 	procd_set_param respawn
 	procd_set_param file /var/etc/smb.conf
-- 
2.7.4


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list