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