> > Well, I wrote something simple in Perl for the last package, but Shaleh says > it fails on his box. What does /usr/sbin/compare_kernel_version say for you? > [ Note that I turned the $debug flag on here: ] > > [EMAIL PROTECTED]:~> /tmp/compare_kernel_version 2.0 > 2.2 ? 2.0 > 2.2 >= 2.0 > [EMAIL PROTECTED]:~> /tmp/compare_kernel_version 2.1 > 2.2 ? 2.1 > 2.2 >= 2.1 > [EMAIL PROTECTED]:~> /tmp/compare_kernel_version 2.2 > 2.2 ? 2.2 > 2.2 >= 2.2 > [EMAIL PROTECTED]:~> /tmp/compare_kernel_version 2.3 > 2.2 ? 2.3 > 2.2 < 2.3 >
I get the same output. However: compare_kernel_version 2.2 || echo "Died trying" says "Died trying", where it should stop with the compare_kernel_version. The error appears to be the value of the return status, not the logic of "is this kernel >, =, > this number".