Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dcu_env_check
Commits
67e69755
Commit
67e69755
authored
Jun 24, 2025
by
liumg
Browse files
Upload New File
parent
33d0b06b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tools/kernel_check.sh
tools/kernel_check.sh
+15
-0
No files found.
tools/kernel_check.sh
0 → 100644
View file @
67e69755
#!/usr/bin/bash
# 驱动安装位置定位
kernel_check
()
{
# 当前kernel版本
kernel_version
=
`
uname
-r
`
# 驱动安装到的kernel
drive_in_kernel
=
`
find /lib/ |
grep
-E
"hydcu|hycu"
|
head
-n
1 |
awk
-F
"/"
'{print $4}'
`
if
[
"
$kernel_version
"
=
"
$drive_in_kernel
"
]
;
then
echo
"驱动安装在当前kernel版本下, 符合正常情况。"
else
echo
"你的内核可能有所变更,检查下环境是否是多个内核"
fi
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment