20250113.1736787084
This commit is contained in:
parent
cfce6c21e1
commit
ba47a5917e
3 changed files with 55 additions and 30 deletions
|
@ -69,3 +69,11 @@ function generate_random_string() {
|
|||
function checksumm() {
|
||||
echo $(sha256sum "${1:?}" | awk '{print $1}')
|
||||
}
|
||||
|
||||
function check_connection() {
|
||||
if ping -c 1 google.com &>/dev/null; then
|
||||
echo 1
|
||||
else
|
||||
echo 0
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue