代码拉取完成,页面将自动刷新
同步操作将从 创E小组/gnb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
GNB_DIR=$(dirname $0)
#GNB_BINARY=FreeBSD_amd64
GNB_BINARY=Linux_x86_64
#GNB_BINARY=macOS
#GNB_BINARY=OpenBSD_amd64
#GNB_BINARY=raspberrypi_ARMv7
#GNB_BINARY=openwrt/ar71xx-generic
#GNB_BINARY=openwrt/ar71xx-mikrotik
#GNB_BINARY=openwrt/ar71xx-nand
#GNB_BINARY=openwrt/mvebu-cortexa9
#GNB_BINARY=openwrt/x86_64
#GNB_BINARY=openwrt/ramips-mt76x8
mkdir -p ${GNB_DIR}/conf/1001/ed25519/
mkdir -p ${GNB_DIR}/conf/1002/ed25519/
mkdir -p ${GNB_DIR}/conf/1003/ed25519/
mkdir -p ${GNB_DIR}/conf/1001/security/
mkdir -p ${GNB_DIR}/conf/1002/security/
mkdir -p ${GNB_DIR}/conf/1003/security/
cp -r ${GNB_DIR}/conf_tpl/* ${GNB_DIR}/conf
${GNB_DIR}/bin/$GNB_BINARY/gnb_crypto -c -p 1001.private -k 1001.public
${GNB_DIR}/bin/$GNB_BINARY/gnb_crypto -c -p 1002.private -k 1002.public
${GNB_DIR}/bin/$GNB_BINARY/gnb_crypto -c -p 1003.private -k 1003.public
cp 1001.public 1002.public 1003.public ${GNB_DIR}/conf/1001/ed25519/
cp 1001.public 1002.public 1003.public ${GNB_DIR}/conf/1002/ed25519/
cp 1001.public 1002.public 1003.public ${GNB_DIR}/conf/1003/ed25519/
mv 1001.public 1001.private ${GNB_DIR}/conf/1001/security/
mv 1002.public 1002.private ${GNB_DIR}/conf/1002/security/
mv 1003.public 1003.private ${GNB_DIR}/conf/1003/security/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。