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 <newtwen@gmail.com>
Mon, 22 Jan 2024 22:02:36 +0000 (23:02 +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>
(cherry picked from commit fe543de80956405085997014fd347f869013953c)

applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js

index 47b4bc0ff51660c8a0dddb9bbe64c859646f6165..d1761d1a74c769e4b1944390b2da4c178b00b77d 100644 (file)
@@ -10,7 +10,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) {