summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-27 23:45:17 +0300
committerPaul Buetow <paul@buetow.org>2026-05-27 23:45:17 +0300
commit428f7d6d16ea0fa3fe27780b89ae0d6d59cb5c82 (patch)
tree87f1cb68dcb99f8ae869e4316e27f9790f2b73e1 /scripts
parent387ae1e8dece4d890a4221099de841d2fda158a7 (diff)
refactor: simplify gitsyncer config and improve NFS umount logic
- Remove unused gitsyncer host entry for paul@t450:git - Remove 'playground' from repository list - Enhance umount logic to handle already-unmounted NFS mounts gracefully
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wol-f3s9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/wol-f3s b/scripts/wol-f3s
index 1036394..12a4ed5 100755
--- a/scripts/wol-f3s
+++ b/scripts/wol-f3s
@@ -80,8 +80,13 @@ umount_nfs_mounts() {
if umount "$mp" 2>/dev/null; then
echo " ✓ Umounted $mp"
else
- echo " ✗ Failed to umount $mp (in use or already unmounted?)"
- failed=1
+ # If it's no longer listed in /proc/mounts, it's already gone.
+ if ! grep -q "^[^ ]* $mp nfs" /proc/mounts; then
+ echo " ✓ $mp was already unmounted"
+ else
+ echo " ✗ Failed to umount $mp (in use or already unmounted?)"
+ failed=1
+ fi
fi
done