Changeset 28678


Ignore:
Timestamp:
2011-10-30T14:06:30+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx/sysupgrade: use $magic_long instead of $magic when comparing with a 32-bit value

Aparently $magic_long was meant here instead of $magic when comparing with
32-bit values.

Signed-off-by: Daniel Golle <dgolle@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r28567 r28678  
    11# 
    2 # Copyright (C) 2009 OpenWrt.org 
     2# Copyright (C) 2011 OpenWrt.org 
    33# 
    44 
     
    7171        case "$board" in 
    7272        ap121 | ap121-mini | ap96 | db120 | zcn-1523h-2 | zcn-1523h-5) 
    73                 [ "$magic" != "68737173" -a "$magic" != "19852003" ] && { 
     73                [ "$magic_long" != "68737173" -a "$magic_long" != "19852003" ] && { 
    7474                        echo "Invalid image type." 
    7575                        return 1 
Note: See TracChangeset for help on using the changeset viewer.