diff options
author | Andy Walsh <andy.walsh44+github@gmail.com> | 2020-02-09 23:40:05 +0100 |
---|---|---|
committer | Andy Walsh <andy.walsh44+github@gmail.com> | 2020-02-09 23:40:05 +0100 |
commit | 1efb04b8c96107dbcf1c237fc5ef55c8bcdd6c5b (patch) | |
tree | ac18fdb1e46226a634f9ff0a5fdf46310440994b /applications/luci-app-ksmbd/htdocs/luci-static | |
parent | 2c2cfaebf1ec8d9baaef95973ff98785141fc76b (diff) |
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 <andy.walsh44+github@gmail.com>
Diffstat (limited to 'applications/luci-app-ksmbd/htdocs/luci-static')
-rw-r--r-- | applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js | 5 |
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.'), |