lkml.org 
[lkml]   [1998]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kmod/kerneld
From
Date
Michiel Boland <boland@diva.nl> writes:

|> On 13 Mar 1998, Andreas Schwab wrote:
|> [about detecting kernel versions in shell scripts]

|>> if let "$1 * 65536 + $2 * 256 + $3 <= 0x2015a"
|>> then
|>> echo load kerneld
|>> fi

|> If I'm not mistaken, 'let' is a bash-ism.

Ragnar explicitly used #!/bin/bash in his original script, so it's ok.
But you can easily replace it with expr.

--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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