aboutsummaryrefslogtreecommitdiff
path: root/bin/executable_wd-umount
blob: 6d9ecbe2b6fb52454c4498cba4c8eeeddbbcc9f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

case `uname` in
    OpenBSD)
        doas umount /mnt/wd
        doas bioctl -d sd3
        ;;
    Linux)
        sudo umount --lazy -f /var/lib/mpd/music
        sudo zpool export -f ztosh
        sudo cryptdisks_stop tosh
        sudo vgchange -an tosh
        sudo vgexport tosh
        ;;
    *)
        echo "Unknown host"
        exit 1
        ;;
esac