#!/bin/sh set -e arch=x86_64 arch_dash=`echo $arch | tr _ -` ver=17.01.4 image=openwrt name=openwrt dist=lede generic_rootfs=${dist}-${ver}-${arch_dash}-generic-rootfs.tar.gz lxc_tar=${dist}-${ver}-${arch_dash}-lxd.tar.gz metadata=metadata.yaml build_tarball() { fakeroot ./build_rootfs.sh $generic_rootfs $metadata $lxc_tar } build_metadata() { stat=`stat -c %Y $generic_rootfs` date=`date -R -d "@${stat}"` cat > $metadata <