]> git.pld-linux.org Git - packages/ettercap6.git/commitdiff
- replacing awk with grep and cut
authorGrzegorz Sterniczuk <grzegorz@sterniczuk.eu>
Fri, 7 Sep 2001 10:12:46 +0000 (10:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ettercap-kernel_version.patch -> 1.2

ettercap-kernel_version.patch

index 0ff6854d2b0f617e429734f02763e4c4165e8c49..dba4824235190137ab58cd80536d1d78744c6ce6 100644 (file)
@@ -7,8 +7,8 @@ diff -urN ettercap-0.5.4.orig/aclocal.m4 ettercap-0.5.4/aclocal.m4
        AC_MSG_CHECKING(Linux kernel version)
 -      major=`uname -r  | cut -f1 -d"."`
 -      minor=`uname -r  | cut -f2 -d"."`
-+      major=`awk -v FS='[".] '/UTS_RELEASE/ { print $2; }' < /usr/include/linux/version.h`
-+      minor=`awk -v FS='[".] '/UTS_RELEASE/ { print $3; }' < /usr/include/linux/version.h`
++      major=`grep UTS_RELEASE /usr/include/linux/version.h | cut -f2 -d"\"" | cut -f1 -d"."`
++      minor=`grep UTS_RELEASE /usr/include/linux/version.h | cut -f2 -d"."`
        uname=`uname -r`
        AC_MSG_RESULT($uname)
        if test "$major$minor" -lt 20; then
This page took 0.072438 seconds and 4 git commands to generate.