代码拉取完成,页面将自动刷新
同步操作将从 FydeOS/MrChromebox-scripts 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
#
# This script offers provides the ability to update the
# Legacy Boot payload, set boot options, and install
# a custom coreboot firmware for supported
# ChromeOS devices
#
# Created by Mr.Chromebox <mrchromebox@gmail.com>
#
# May be freely distributed and modified as needed,
# as long as proper attribution is given.
#
#debug
#if [ 1 + 1 == 2 ] ; then
echo -e "欢迎使用chromebook研究院英文版脚本镜像服务器..."
#else
# echo -e "英文版原版脚本维护中...请在chromebook研究院获取中文版脚本"
# exit 0
#fi
sleep 3
#where the stuff is
script_url="https://gitee.com/elao/mr-chromebox-scripts/raw/master/"
#ensure output of system tools in en-us for parsing
export LC_ALL=C
#set working dir
if cat /etc/lsb-release | grep "Chrom" > /dev/null 2>&1; then
# needed for ChromeOS/ChromiumOS v82+
mkdir -p /usr/local/bin
cd /usr/local/bin
else
cd /tmp
fi
#get support scripts
echo -e "\nCurrent working directory is:\n\n"
pwd
echo -e "\nDownloading supporting files from mirror site..."
rm -rf firmware.sh >/dev/null 2>&1
rm -rf functions.sh >/dev/null 2>&1
rm -rf sources.sh >/dev/null 2>&1
curl -LO ${script_url}firmware.sh
rc0=$?
echo -e "\nDownloading firmware.sh from mirror site..."
curl -LO ${script_url}functions.sh
rc1=$?
echo -e "\nDownloading functions.sh from mirror site..."
curl -LO ${script_url}sources.sh
rc2=$?
echo -e "\nDownloading sources.sh from mirror site..."
if [[ $rc0 -ne 0 || $rc1 -ne 0 || $rc2 -ne 0 ]]; then
echo -e "Error downloading one or more required files; cannot continue"
exit 1
fi
source ./sources.sh
source ./firmware.sh
source ./functions.sh
#set working dir
cd /tmp
#do setup stuff
prelim_setup
[[ $? -ne 0 ]] && exit 1
#show menu
menu_fwupdate
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。