aboutsummaryrefslogtreecommitdiff
path: root/bin/executable_wd-umount
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2025-08-21 13:21:45 -0400
committerRyan Kavanagh <rak@rak.ac>2025-08-21 13:21:45 -0400
commitf19f5df73ac0fdc3efa14649c4b646bcc4de84f4 (patch)
treec323a796deb32800dd3dc054fe778f1787d3f953 /bin/executable_wd-umount
parentAdopt straight.el (diff)
Move ~/bin to ~/.local/bin
Diffstat (limited to 'bin/executable_wd-umount')
-rw-r--r--bin/executable_wd-umount24
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/executable_wd-umount b/bin/executable_wd-umount
deleted file mode 100644
index 08e55eb..0000000
--- a/bin/executable_wd-umount
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-case `uname` in
- OpenBSD)
- doas umount /mnt/wd
- doas bioctl -d 79665ba14a5187ba
- ;;
- Linux)
- if zpool list wd-pass > /dev/null 2>&1; then
- if mount -l | grep -E '^/var/lib/mpd/music ' > /dev/null 2>&1; then
- sudo umount --lazy -f /var/lib/mpd/music
- fi
- if mount -l | grep -E '^systemd.* on /var/lib/mpd/playlists ' > /dev/null 2>&1; then
- sudo umount --lazy -f /var/lib/mpd/playlists
- fi
- mount -l -t zfs | IFS=' on ' awk '{ print $1 }' | sudo xargs -I '{}' zfs umount -u '{}'
- sudo zpool export wd-pass
- fi
- ;;
- *)
- echo "Unknown host"
- exit 1
- ;;
-esac