LINUX.ORG.RU

История изменений

Исправление berrywizard, (текущая версия) :

...

fatal() {
 xc=$1 ; shift ; echo $@ 1>&2 ; exit $xc
}

checksum() {
 test "$1" = 625c027b21afe6de7c3d0de66e3a42000269dd00c2ef9a5347007734537f3ea2
}

...

    M4B30ZU="https://dl.google.com/dl/android/aosp/hammerhead-m4b30z-factory-625c027b.zip"
    M4B30Z="${M4B30ZU##*/}"

...

    wget "$M4B30ZU"
fi

checksum $( sha256sum "$M4B30Z" ) || fatal 29 File checksum failed

...

Исходная версия berrywizard, :

...

fatal() {
 xc=$1 ; shift ; echo $@ 1>&2 ; exit $xc
}

checksum() {
 test "$1" = 625c027b21afe6de7c3d0de66e3a42000269dd00c2ef9a5347007734537f3ea2
}

    M4B30ZU="https://dl.google.com/dl/android/aosp/hammerhead-m4b30z-factory-625c027b.zip"
    M4B30Z="${M4B30ZU##*/}"

...

    wget "$M4B30ZU"
fi

checksum $( sha256sum "$M4B30Z" ) || fatal 29 File checksum failed

...