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