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
1ac6d5a5
Commit
1ac6d5a5
authored
Jun 24, 2025
by
liumg
Browse files
Upload New File
parent
b46b6eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tools/sme_check.sh
tools/sme_check.sh
+16
-0
No files found.
tools/sme_check.sh
0 → 100644
View file @
1ac6d5a5
#!/usr/bin/bash
sme_check
()
{
if
[
!
-f
"
$1
"
]
;
then
echo
"file not exists"
>
&2
exit
1
fi
grep
-i
sme
$1
>
$OUTPUT_DIR
/sme.log
if
[
-s
"
$$
OUTPUT_DIR/sme.log"
]
;
then
echo
"非CSV场景,需要BIOS关闭SME设置"
return
1
else
echo
"OS SME目前没有打开, 非CSV场景下,该状态正常"
fi
}
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