This commit is contained in:
砼砼 2022-04-08 00:54:45 +08:00
parent f4bfed3d97
commit f58b9fb288
No known key found for this signature in database
GPG Key ID: 3FDE30A50EA2CCEA
2 changed files with 1 additions and 3 deletions

View File

@ -65,7 +65,7 @@ jobs:
# 调整VID和PID
sed -i -e 's/0x0001/0x88AA/g' -e 's/0x46f4/0x88AA/g' ${{matrix.platform}}_user_config.json
# 调整SN和MAC 最好使用 actions secrets 引入
# 调整SN和MAC,最好使用 actions secrets 引入,SN应该是固定值不应该每次生成
sn=`./redpill_tool_chain.sh sn ${{matrix.platform}} | grep 'Serial Number' | awk '{print $3}'`
sed -i -e "s/1234XXX123/${sn:="1130LWN123456"}/g" -e 's/XXYYXXYYXXYY/0011323D47F7/g' ${{matrix.platform}}_user_config.json

View File

@ -110,7 +110,6 @@ function generateSerial(){
function showhelp() {
cat << EOF
$(basename ${0})
----------------------------------------------------------------------------------------
@ -121,7 +120,6 @@ DS3615xs DS3617xs DS916+ DS918+ DS920+ DS3622xs+ FS6400 DVA3219 DVA3221
e.g. $(basename ${0}) DS3615xs
----------------------------------------------------------------------------------------
EOF
}
if [ -z "$1" ] ; then