[SM-Commit] GIT changes to master grimoire by Arjan Bouter (bc0b7a866250e866a7d776cd4152024d3cae4964)
Jaka Kranjc
smgl at lynxlynx.info
Mon Sep 8 16:52:14 EDT 2008
On Monday 08 of September 2008 22:42:12 Arjan Bouter wrote:
> +++ b/kernels/dazuko/PREPARE
> @@ -0,0 +1,8 @@
> +source $GRIMOIRE/FUNCTIONS &&
> +
> +if [[ "$(get_kernel_version)|cut -c-6" < '2.6.25' ]]; then
This will do a string comparison, so it won't work for kernels 2.6.3* - 2.6.9*
For numerical comparison use (( )), but it can only take numbers, so I suggest
you compare just the minor version: (( $(get_kernel_version|cut -c 4-5) <
25 ))
LP
--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20080908/11face15/attachment.bin
More information about the SM-Commit
mailing list