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