aboutsummaryrefslogblamecommitdiff
path: root/bin/executable_wd-umount
blob: 6d9ecbe2b6fb52454c4498cba4c8eeeddbbcc9f0 (plain) (tree)
1
2

         
















                                                
#!/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