Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dkms updates #233

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

PATH=$PATH:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/sbin

KDKMS=
case "$1" in
--from-dkms-conf*)
KDKMS=`echo "$1" | sed 's/[^=]*.//'`
KDIR="$KDKMS"
# restore options from existing Makefile, if present
if [ -e Makefile ]; then
set -- `sed -n 's/^CARGS = \(.*\)/\1/p' Makefile`
Expand Down Expand Up @@ -589,6 +591,7 @@ snmp_check() {

dkms_check() {
DKMSINSTALL=
test "$KDKMS" && return
test "$SKIPDKMS" && return

echo -n "Checking for DKMS... "
Expand All @@ -614,7 +617,7 @@ dkms_check() {
echo Yes.
DKMSINSTALL=dinstall
test "$FROMDKMSCONF" && return
if dkms status | grep ^ipt-netflow, >/dev/null; then
if dkms status ipt-netflow | grep ^ipt-netflow/ >/dev/null; then
echo "! You are already have module installed via DKMS"
echo "! it will be uninstalled on 'make install' and"
echo "! current version of module installed afterwards."
Expand Down