lkml.org 
[lkml]   [2002]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ver_linux script updates
Hi!

David Ford wrote:
[...]
> Please provide feedback on it.

ECN detection doesn't work properly.

--- ver_linux.orig Thu Feb 14 13:31:43 2002
+++ ver_linux Thu Feb 14 13:31:33 2002
@@ -44,8 +44,8 @@
}

function truth {
- if [ "$@" == "0" ]; then echo "disabled"; fi
- echo "enabled"
+ if [ "$@" == "0" ]; then echo "disabled"; else
+ echo "enabled"; fi
}

pv "Gnu C compiler" "$(gcc --version 2>/dev/null)" gcc
@@ -153,5 +153,5 @@
# kernel tuning options
if [ -e /proc/sys/net/ipv4/tcp_ecn ]; then
v=$(cat /proc/sys/net/ipv4/tcp_ecn)
- pv "TCP option: ECN" "$(truth v)"
+ pv "TCP option: ECN" "$(truth $v)"
fi
Greeting from Aachen,
Stefan Becker
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.111 / U:8.504 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site