markdown 比特大陆盒子升级脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 比特大陆盒子升级脚本相关的知识,希望对你有一定的参考价值。

#!/bin/bash 
echo ">>>>>starting update..." 
# stop service 
sudo systemctl stop GrabMachine 
sudo systemctl stop front_end_server 
sudo systemctl stop SophonGate 
sudo systemctl stop SophonFace_SDK 
sudo systemctl stop bm_server 
sudo systemctl stop fan_monitor 
sudo systemctl stop npm 
sudo systemctl stop npm_support 
sudo systemctl stop npm_support_1 
sudo systemctl stop matcher 
sudo systemctl stop mongodb 
sudo systemctl stop clock 
# kernel
sudo dd if=emmcboot.itb of=/dev/mmcblk0p1 bs=16M count=1
# bm_server
echo ">>>>>bm_server upgrade starting..."
rm -rf /system/bin/ /system/lib/ /system/data/ /system/include
if [ $? == 0 ]; then 
  sync 
  echo "clear old /system/bin/system/lib /system/data succeed" 
else 
  echo "clear old /system failed" 
  exit -1 
fi

echo "1" > /system/bootup.first
tar xzf install.tgz -C /system/
if [ $? == 0 ]; then 
  echo "uncompress install.tgz to /system succeed" 
  echo "bm_server upgrade done will reboot" 
  echo "sync ..." 
  sync 
  echo "will reboot..." 
  sleep 10 
  reboot 
else 
  echo "bm_server upgrade failed!!!!!!!" 
  echo 
fi
1. 安装Etcher软件(SD卡制作工具)
2. 烧写img
3. 插卡直接等待7-8分钟

以上是关于markdown 比特大陆盒子升级脚本的主要内容,如果未能解决你的问题,请参考以下文章

Bitcoin unlimited 是比特币大陆的阳谋

消息称台积电将为比特大陆代工用于“挖矿”的 5nm 芯片

台积电代工5nm加密货币挖矿芯片?比特大陆内部人士这样回应

比特大陆推出了一个采用Equihash算法的ASIC矿机

大量二手机器涌入市场 比特大陆宣布暂停现货矿机销售

动能挖矿潮强袭 比特大陆捧现金下单台积电5nm