summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ksmbd/htdocs
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-02-10 07:10:14 +0200
committerGitHub <noreply@github.com>2020-02-10 07:10:14 +0200
commitf4e0b306764a4dfa55461bfc6b43a018f67e4dff (patch)
tree1aba6caf2cc9446a2c2280df89c59e77f5163605 /applications/luci-app-ksmbd/htdocs
parentecd6d97c6cd19e1f8d512e1739c4d2bbad5de9a8 (diff)
parent1efb04b8c96107dbcf1c237fc5ef55c8bcdd6c5b (diff)
Merge pull request #3620 from Andy2244/luci-app-ksmbd_new-UCI
luci-app-ksmbd: support new UCI option, update for 3.2.1 version
Diffstat (limited to 'applications/luci-app-ksmbd/htdocs')
-rw-r--r--applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
index a77e72bcdf..6cf9f3edae 100644
--- a/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
+++ b/applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js
@@ -8,7 +8,7 @@ return L.view.extend({
return Promise.all([
L.resolveDefault(fs.stat('/sbin/block'), null),
L.resolveDefault(fs.stat('/etc/config/fstab'), null),
- L.resolveDefault(fs.exec('/usr/sbin/usmbd', ['-V']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version : (\S+)/))[1] }),
+ L.resolveDefault(fs.exec('/usr/sbin/ksmbd.mountd', ['-V']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version : (\S+)/))[1] }),
L.resolveDefault(fs.exec('/sbin/modinfo', ['ksmbd']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version:\t(\S+)/))[1] }),
]);
},
@@ -38,6 +38,9 @@ return L.view.extend({
o = s.taboption('general', form.Value, 'description', _('Description'));
o.placeholder = 'Ksmbd on OpenWrt';
+
+ o = s.taboption('general', form.Flag, 'allow_legacy_protocols', _('Allow legacy (insecure) protocols/authentication.'),
+ _('Allow legacy smb(v1)/Lanman connections, needed for older devices without smb(v2.1/3) support.'));
o = s.taboption('template', form.TextValue, '_tmpl',
_('Edit the template that is used for generating the ksmbd configuration.'),