代码拉取完成,页面将自动刷新
同步操作将从 LubanCat/DoorNet-OpenWrt 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
#menu.sh
DEVICE_DIR='bin/targets/rockchip/armv8/'
echo "---------------------------------------------------------"
echo "please enter your choise device number:"
echo "[0] Exit Menu"
echo "[1] DoorNet1"
echo "[2] DoorNet2"
# echo "[3] IMX6ULL"
# echo "[4] IMX6ULL"
# echo "[5] IMX6ULL"
echo "---------------------------------------------------------"
read input
case $input in
0)
exit;;
1)
DEVICE_NAME=DoorNet1
OUTPUT_DIR=EmbedFire_DoorNet1/
device_name=embedfire_doornet1
;;
2)
DEVICE_NAME=DoorNet2
OUTPUT_DIR=EmbedFire_DoorNet2/
device_name=embedfire_doornet2
;;
# 3)
# DEVICE_NAME=IMX6ULL
# OUTPUT_DIR=EmbedFire_Imx6ull
*)
echo 'input device number error, exit !'
exit;;
esac
echo '**********************config set info *********************'
echo 'DEVICE_NAME=' $DEVICE_NAME
echo 'DEVICE_DIR =' $DEVICE_DIR
echo 'OUTPUT_DIR =' $OUTPUT_DIR
echo 'Package file path : '${DEVICE_DIR}${OUTPUT_DIR}
dirdate=`date '+%Y_%m_%d'`
namedate=`date '+%Y%m%d'`
mkdir -p ${DEVICE_DIR}${OUTPUT_DIR}${dirdate}
cp ${DEVICE_DIR}openwrt-rockchip-armv8-${device_name}-ext4-sysupgrade.img.gz ${DEVICE_DIR}${OUTPUT_DIR}${dirdate}/openwrt-${device_name}-ext4-${namedate}.img.gz
cp ${DEVICE_DIR}openwrt-rockchip-armv8-${device_name}-squashfs-sysupgrade.img.gz ${DEVICE_DIR}${OUTPUT_DIR}${dirdate}/openwrt-${device_name}-squashfs-${namedate}.img.gz
cp ${DEVICE_DIR}openwrt-rockchip-armv8-${device_name}.manifest ${DEVICE_DIR}${OUTPUT_DIR}${dirdate}/openwrt-${device_name}.manifest
rm -f ${DEVICE_DIR}${OUTPUT_DIR}${dirdate}/sha256sum
cd ${DEVICE_DIR}${OUTPUT_DIR}
sha256sum ${dirdate}/* > ${dirdate}/sha256sum
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。