summaryrefslogtreecommitdiff
path: root/package/network
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-01-12 12:06:53 +0000
committerJohn Crispin <john@openwrt.org>2014-01-12 12:06:53 +0000
commitefad45bb0b2736bb6c1072a291ff6f24353c857f (patch)
tree209d6cb215a09ce7bd3cedaf253c3f3def09bff2 /package/network
parentbdb18652367fb57874a849038aacd5ea41fbf4f0 (diff)
downloadmtk-20170518-efad45bb0b2736bb6c1072a291ff6f24353c857f.zip
mtk-20170518-efad45bb0b2736bb6c1072a291ff6f24353c857f.tar.gz
mtk-20170518-efad45bb0b2736bb6c1072a291ff6f24353c857f.tar.bz2
samba: add browsable option
https://dev.openwrt.org/ticket/14682 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39227
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/services/samba36/files/samba.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/samba36/files/samba.init b/package/network/services/samba36/files/samba.init
index 61398d8..3146dd9 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() {