luci-app-ksmbd: update kmod from version to vermagic
authorAndrea Pesaresi <andreapesaresi82@gmail.com>
Fri, 19 Jan 2024 15:41:37 +0000 (16:41 +0100)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Mon, 22 Jan 2024 21:21:36 +0000 (22:21 +0100)
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>
applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js

index 7408c33c44a1e4aea40e7c1a29db220f761e0dcf..4690a5a301c15d10ee0e4fab3f323f058cded1b0 100644 (file)
@@ -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) {