some mount and unmount scripts

This commit is contained in:
2025-07-27 13:46:15 +02:00
parent b2a0364fcb
commit 299e5aa5de
9 changed files with 99 additions and 18 deletions

9
.scripts/smb-unmount.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
[ -z "$SMB_MOUNT_POINT" ] && SMB_MOUNT_POINT="/mnt/smb"
if sudo umount "$SMB_MOUNT_POINT" && sudo rmdir "$SMB_MOUNT_POINT"; then
echo "Unmounted and removed mount point $SMB_MOUNT_POINT"
else
exit 1
fi