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
firmware-util.sh

 

转载于:https://www.cnblogs.com/y0da/p/6030535.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值