21 lines
359 B
Bash
Executable File
21 lines
359 B
Bash
Executable File
#!/bin/sh
|
|
# vim: set sw=4 ts=4 sts=4 et :
|
|
|
|
set -e
|
|
|
|
. "${CONFIGDIR:=${PWD}}"/config
|
|
|
|
IMAGESDIR="$1"
|
|
|
|
cd "${IMAGESDIR}"
|
|
sha256sum firmware.img > digests
|
|
sha256sum rootfs.squashfs >> digests
|
|
cp -u "${OLDPWD}"/install-update.sh install
|
|
tar -c --zstd -f update.tar.zstd \
|
|
digests \
|
|
firmware.img \
|
|
rootfs.squashfs \
|
|
install \
|
|
|| exit
|
|
rm install
|