Changeset 36548


Ignore:
Timestamp:
2013-05-05T14:41:42+02:00 (5 years ago)
Author:
blogic
Message:

sysupgrade: fixes broken pipe error during sysupgade

Signed-off-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/upgrade/common.sh

    r36107 r36548  
    158158        esac 
    159159        if [ -z "$conc" ]; then 
    160                 local magic="$(eval $cmd $from | dd bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" 
     160                local magic="$(eval $cmd $from 2>/dev/null | dd bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" 
    161161                case "$magic" in 
    162162                        1f8b) conc="zcat";; 
     
    165165        fi 
    166166 
    167         eval "$cmd $from ${conc:+| $conc}" 
     167        eval "$cmd $from 2>/dev/null ${conc:+| $conc}" 
    168168} 
    169169 
Note: See TracChangeset for help on using the changeset viewer.