2 DKMS=`which dkms 2>/dev/null`
4 echo ">>> DKMS: Module add, build, and install "
6 $DKMS add -m vhba -v 20110915
7 $DKMS build -m vhba -v 20110915
8 $DKMS install -m vhba -v 20110915
10 echo ">>> Updating kernel modules..."
23 DKMS=`which dkms 2>/dev/null`
24 echo ">>> DKMS: Module uninstall "
26 line=`$DKMS status -m vhba`
27 if echo "$line" | grep -E 'added|built|installed'; then
28 version=`echo "$line" | sed "s/vhba,\([^,]*\)[,:].*/\1/;t;d"`
29 $DKMS remove -m vhba -v $version --all