aboutsummaryrefslogblamecommitdiff
path: root/bin/executable_wd-mount
blob: 49466c2aee36fe694c281d29c9fc12f1911d3abe (plain) (tree)
1
2
3
4
5
6
7
8
9
10

         

               

                                                        

          

                                                       





                           

                
#!/bin/sh

case `uname` in
    OpenBSD)
        doas bioctl -c C -l fe3fd8d53b06049b.a softraid0
        doas mount /media/wd
        ;;
    Linux)
        if ! zpool list wd-pass > /dev/null 2>&1 ; then
            sudo zpool import -l wd-pass
        fi
        ;;
    *)
        echo "Unknown host"
        exit 1
esac

# vim: set sw=4: