From 97245420b36de2635d89a0e61a59c4379e6b2a16 Mon Sep 17 00:00:00 2001 From: blogic Date: Sun, 12 Jan 2014 12:06:53 +0000 Subject: samba: add browsable option https://dev.openwrt.org/ticket/14682 Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39227 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/samba36/files/samba.init | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/network') diff --git a/package/network/services/samba36/files/samba.init b/package/network/services/samba36/files/samba.init index 61398d8f4f..3146dd9f9b 100755 --- a/package/network/services/samba36/files/samba.init +++ b/package/network/services/samba36/files/samba.init @@ -64,6 +64,7 @@ smb_add_share() { local guest_ok local create_mask local dir_mask + local browseable config_get name $1 name config_get path $1 path @@ -72,6 +73,7 @@ smb_add_share() { config_get guest_ok $1 guest_ok config_get create_mask $1 create_mask config_get dir_mask $1 dir_mask + config_get browseable $1 browseable [ -z "$name" -o -z "$path" ] && return @@ -81,6 +83,7 @@ smb_add_share() { [ -n "$guest_ok" ] && echo -e "\tguest ok = $guest_ok" >> /var/etc/smb.conf [ -n "$create_mask" ] && echo -e "\tcreate mask = $create_mask" >> /var/etc/smb.conf [ -n "$dir_mask" ] && echo -e "\tdirectory mask = $dir_mask" >> /var/etc/smb.conf + [ -n "$browseable" ] && echo -e "\tbrowseable = $browseable" >> /var/etc/smb.conf } start() { -- cgit v1.2.3