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
33d0b06b
Commit
33d0b06b
authored
Jun 24, 2025
by
liumg
Browse files
Upload New File
parent
dd24dfc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tools/driver_install.check.sh
tools/driver_install.check.sh
+12
-0
No files found.
tools/driver_install.check.sh
0 → 100644
View file @
33d0b06b
#!/bin/bash
#获取/tmp的可用空间大小
available_tmp
=
$(
df
-k
/tmp |
awk
'NR==2 {print $4}'
)
available_tmp_gb
=
$((
available_tmp
/
1024
/
1024
))
Error_size
=
4
if
[
$available_tmp_gb
-lt
$Error_size
]
;
then
echo
"/tmp size is too smail, should be large than
$Error_size
GB!!"
exit
1
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