首页 > 代码库 > mrchromebox script(curl)
mrchromebox script(curl)
1 #!/bin/bash 2 # 3 # This script offers provides the ability to update the 4 # Legacy Boot payload, set boot options, and install 5 # a custom coreboot firmware for supported 6 # ChromeOS devices 7 # 8 # Created by Mr.Chromebox <mrchromebox@gmail.com> 9 # 10 # May be freely distributed and modified as needed, 11 # as long as proper attribution is given. 12 # 13 14 #where the stuff is 15 script_url="https://raw.githubusercontent.com/MattDevo/scripts/master/" 16 17 #set working dir 18 cd /tmp 19 20 #get support scripts 21 rm -rf firmware.sh >/dev/null &2>1 22 rm -rf functions.sh >/dev/null &2>1 23 rm -rf sources.sh >/dev/null &2>1 24 curl -s -L -O ${script_url}firmware.sh 25 rc0=$? 26 curl -s -L -O ${script_url}functions.sh 27 rc1=$? 28 curl -s -L -O ${script_url}sources.sh 29 rc2=$? 30 if [[ $rc0 -ne 0 || $rc1 -ne 0 || $rc2 -ne 0 ]]; then 31 echo -e "Error downloading one or more required files; cannot continue" 32 exit 1 33 fi 34 35 source ./sources.sh 36 source ./firmware.sh 37 source ./functions.sh 38 39 #do setup stuff 40 prelim_setup 41 [[ $? -ne 0 ]] && exit 1 42 43 #show menu 44 menu_fwupdate
mrchromebox script(curl)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。