Ref: Konsolidiert die Funktionen in eine gruppierte sh-Datei
This commit is contained in:
parent
abf83fd9dd
commit
4c85a02fe0
@ -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
|
||||||
|
}
|
||||||
|
|||||||
@ -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
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user