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

Bug#395259: nobootloader: [powerpc/pegasos] bad sed invocation breaks devfs style paths (division by zero)



On Thu, Oct 26, 2006 at 01:33:55PM +0200, Frans Pop wrote:
> On Thursday 26 October 2006 09:10, Sven Luther wrote:
> > That said, please also apply the first hunk of the attached patch,
> > which bumps the check to 1.4, as my colegues released a 1.3 firmware
> > from an older tree, and i had to bump the version of the version with
> > the correct disk numbering.
> 
> No idea what you're talking about here. I see nothing regarding that in 
> your patch.

Did you see the new version i attached : 

Index: postinst
===================================================================
--- postinst    (revision 42226)
+++ postinst    (working copy)
@@ -39,12 +39,12 @@
                        rest="${rest#*.}"
                        fv3="${rest%%.*}"
                        if [ "$fv1" -eq 1 ]; then
-                               if [ "$fv2" -eq 2 ] && [ "$fv3" -ge 99 ]; then
+                               if [ "$fv2" -eq 3 ] && [ "$fv3" -ge 99 ]; then
                                        partition_offset=0
-                               elif [ "$fv2" -ge 3 ]; then
+                               elif [ "$fv2" -ge 4 ]; then
                                        partition_offset=0
                                fi
-                       elif [ "$fv1" -ge 2 ]; then
+                       elif [ "$fv1" -ge 3 ]; then
                                partition_offset=0
                        fi
                fi


Friendly,

Sven Luther




Reply to: