grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] make 10_linux' test_gt() a bit more generic


From: Robert Millan
Subject: Re: [PATCH] make 10_linux' test_gt() a bit more generic
Date: Fri, 7 Aug 2009 14:05:29 +0200
User-agent: Mutt/1.5.18 (2008-05-17)


Committed.  Also moved those functions to grub-mkconfig_lib.in.

On Tue, Aug 04, 2009 at 09:19:40PM +0200, Robert Millan wrote:
> 
> This makes 10_linux' test_gt() a bit more generic so that it can be
> moved (along with a few other functions) to grub-mkconfig_lib, where
> it'll be usable by 10_freebsd.
> 
> This will allow handling multiple kernel versions in 10_freebsd, like
> 10_linux does.
> 
> -- 
> Robert Millan
> 
>   The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
>   how) you may access your data; but nobody's threatening your freedom: we
>   still allow you to remove your data and not access it at all."

> 2009-08-04  Robert Millan  <address@hidden>
> 
>       * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
>       not just "vmlinu[zx]".
> 
> Index: util/grub.d/10_linux.in
> ===================================================================
> --- util/grub.d/10_linux.in   (revision 2466)
> +++ util/grub.d/10_linux.in   (working copy)
> @@ -67,8 +67,8 @@ test_numeric ()
>  
>  test_gt ()
>  {
> -  local a=`echo $1 | sed -e "s/vmlinu[zx]-//g"`
> -  local b=`echo $2 | sed -e "s/vmlinu[zx]-//g"`
> +  local a=`echo $1 | sed -e "s/[^-]*-//g"`
> +  local b=`echo $2 | sed -e "s/[^-]*-//g"`
>    local cmp=gt
>    if [ "x$b" = "x" ] ; then
>      return 0

> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]