]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: introduce a function to get kernel version number
authorShiji Yang <yangshiji66@outlook.com>
Tue, 17 Jun 2025 14:06:38 +0000 (22:06 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 14 Jul 2025 20:30:20 +0000 (22:30 +0200)
commita0fe3cfb62fbf0b5f599c90e488727f493223429
tree0a4fee795085bf9ef084166b1ae7ce34ad8e1186
parentb626262226a87bcb6ca7e71d776ffe059a981060
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>
package/base-files/files/lib/functions/system.sh