From 1efb04b8c96107dbcf1c237fc5ef55c8bcdd6c5b Mon Sep 17 00:00:00 2001 From: Andy Walsh Date: Sun, 9 Feb 2020 23:40:05 +0100 Subject: luci-app-ksmbd: support new UCI option, update for 3.2.1 version * support new UCI option * update for 3.2.1 version (usmbd -> ksmbd.mountd) Signed-off-by: Andy Walsh --- .../luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-ksmbd/htdocs/luci-static') 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.'), -- cgit v1.2.3