18 lines
451 B
Bash
Executable File
18 lines
451 B
Bash
Executable File
#!/bin/sh
|
|
# vim: set sw=4 ts=4 sts=4 et :
|
|
|
|
UPDATE_PACKAGE=update.tar.zstd
|
|
SRCDIR=$(realpath "${0%/*}")
|
|
|
|
cd "${BINARIES_DIR}"
|
|
printf 'Creating %s/%s\n' "${BINARIES_DIR}" "${UPDATE_PACKAGE}" >&2
|
|
sha256sum firmware.img > digests || exit
|
|
sha256sum rootfs.squashfs >> digests || exit
|
|
cp -u "${SRCDIR}"/install-update.sh install || exit
|
|
tar -c --zstd -f "${UPDATE_PACKAGE}" \
|
|
digests \
|
|
firmware.img \
|
|
rootfs.squashfs \
|
|
install \
|
|
|| exit
|