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