码迷,mamicode.com
首页 > Web开发 > 详细

mrchromebox script(curl)

时间:2016-11-04 16:40:11      阅读:635      评论:0      收藏:0      [点我收藏+]

标签:span   gif   nbsp   user   .com   hid   gmail   sources   ann   

技术分享
 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

 

mrchromebox script(curl)

标签:span   gif   nbsp   user   .com   hid   gmail   sources   ann   

原文地址:http://www.cnblogs.com/y0da/p/6030535.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!