openwrt/package/base-files/files/lib
Shiji Yang 42ca1612a2
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 a0fe3cfb62)
Link: https://github.com/openwrt/openwrt/pull/20739
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-12 00:08:14 +01:00
..
functions base-files: introduce a function to get kernel version number 2025-11-12 00:08:14 +01:00
preinit base-files: add ucidef_set_network_device_path_port function 2024-10-19 19:10:56 +02:00
upgrade mvebu: fix sysupgrade failure 2024-10-13 14:18:21 +02:00
functions.sh base-files: Reapply fixed "Ignore exit code of uci.sh inclusion" 2024-06-12 11:12:13 +02:00