luci-app-ksmbd: update for 3.2.1 version (usmbd -> ksmbd.mountd)

* update for 3.2.1 version (usmbd -> ksmbd.mountd)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
Andy Walsh 2020-02-15 17:16:17 +01:00
parent 49999e9879
commit bd38c30a37
2 changed files with 2 additions and 2 deletions

View file

@ -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] }),
]);
},

View file

@ -4,7 +4,7 @@
"read": {
"file": {
"/etc/ksmbd/smb.conf.template": [ "read" ],
"/usr/sbin/usmbd": [ "exec" ],
"/usr/sbin/ksmbd.mountd": [ "exec" ],
"/sbin/modinfo": [ "exec" ]
}
},