From ae2c523b9a971c676f47ee78b262f217fa07e30f Mon Sep 17 00:00:00 2001 From: Andrea Pesaresi Date: Fri, 19 Jan 2024 16:41:37 +0100 Subject: [PATCH] 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 (cherry picked from commit fe543de80956405085997014fd347f869013953c) --- .../luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7408c33c44..4690a5a301 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 @@ -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) { -- 2.30.2