Ref: Konsolidiert die Funktionen in eine gruppierte sh-Datei

This commit is contained in:
DragonSlayer_14 2025-03-08 11:19:14 +01:00
parent abf83fd9dd
commit 4c85a02fe0
2 changed files with 18 additions and 10 deletions

View File

@ -8,3 +8,21 @@ is_mounted() {
return 1 # Nicht gemountet return 1 # Nicht gemountet
fi fi
} }
is_webdav_mounted() {
local mount_point="$1"
if mount | grep -q "on $mount_point type davfs"; then
return 0 # WebDAV ist gemountet
else
return 1 # WebDAV ist nicht gemountet
fi
}
is_nfs_mounted() {
local mount_point="$1"
if mount | grep -q "on $mount_point type nfs"; then
return 0 # NFS ist gemountet
else
return 1 # NFS ist nicht gemountet
fi
}

View File

@ -1,10 +0,0 @@
#!/bin/bash
is_webdav_mounted() {
local mount_point="$1"
if mount | grep -q "on $mount_point type davfs"; then
return 0 # WebDAV ist gemountet
else
return 1 # WebDAV ist nicht gemountet
fi
}