diff options
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 a77e72bcd..6cf9f3eda 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.'), |