cd /home/yun/lede/

echo 'start x64' >> /home/yun/okimg/mk.log
date >> /home/yun/okimg/mk.log

cat 64.config > .config
./scripts/feeds update -a && ./scripts/feeds install -a && make -j8 download V=s

echo 'downloaded' >> /home/yun/okimg/mk.log
date >> /home/yun/okimg/mk.log

make -j3 V=s

echo 'end make' >> /home/yun/okimg/mk.log
date >> /home/yun/okimg/mk.log

cp /home/yun/lede/bin/targets/x86/64/openwrt-x86-64-generic-squashfs-combined.img /home/yun/okimg/opx64.img
cd /home/yun/okimg/
zip opx64.img.zip opx64.img
rm opx64.img
mv opx64.img.zip `date "+%Y-%m-%d-%H-%M"`-x64.img.zip

echo 'end x64' >> /home/yun/okimg/mk.log
date >> /home/yun/okimg/mk.log
