]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: introduce a function to get kernel version number
authorShiji Yang <yangshiji66@outlook.com>
Tue, 11 Nov 2025 21:02:22 +0000 (23:02 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 11 Nov 2025 23:08:14 +0000 (00:08 +0100)
commit42ca1612a2e207d47400d4bbbd4188a1cbc96b22
tree2a1d632ae3d02422e89df896a22759af219bf850
parentae51d0098efe0712a3405fb3c913fe9baaef4473
base-files: introduce a function to get kernel version number

A new function "get_linux_version()" to normalize and print the
kernel version as an integer. In some migration scripts, it is
useful for checking the Linux kernel version.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19172
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit a0fe3cfb62fbf0b5f599c90e488727f493223429)
Link: https://github.com/openwrt/openwrt/pull/20739
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/base-files/files/lib/functions/system.sh