luci-app-ksmbd: update kmod from version to vermagic
Now the kmod version on luci show "?", if we switch from version to vermagic it will show correct version of kmod. Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
This commit is contained in:
parent
1bb272fefc
commit
fe543de809
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ return view.extend({
|
|||
L.resolveDefault(fs.stat('/sbin/block'), null),
|
||||
L.resolveDefault(fs.stat('/etc/config/fstab'), null),
|
||||
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] }),
|
||||
L.resolveDefault(fs.exec('/sbin/modinfo', ['ksmbd']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/vermagic:\t(\S+)/))[1] }),
|
||||
]);
|
||||
},
|
||||
render: function(stats) {
|
||||
|
|
Loading…
Reference in a new issue