Skip to content

Commit

Permalink
feat: 在安装时检测内核版本
Browse files Browse the repository at this point in the history
根据目前的经验,内核版本至少达到5.10时才支持使用的ebpf特性
  • Loading branch information
shadow3aaa committed Oct 6, 2024
1 parent edb13b8 commit 8fa8a82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ if [ $ARCH != arm64 ]; then
elif [ $API -le 30 ]; then
local_print "系统版本过低, 需要安卓12及以上的系统版本版本" "Required A12+ !"
abort
elif uname -r | awk -F. '{if ($1 < 5 || ($1 == 5 && $2 < 10)) exit 0; else exit 1}'; then
local_print "内核版本过低,需要5.10或以上 !" "The kernel version is too low. Requires 5.10+ !"
abort
fi

if [ -f $CONF ]; then
Expand Down

0 comments on commit 8fa8a82

Please sign in to comment.