aboutsummaryrefslogtreecommitdiff
path: root/bin/executable_wd-umount
blob: e44c3ad85556093ecc00ef0fafcac84501e328d1 (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 79665ba14a5187ba
        ;;
    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