forked from pwelyn/Android-Kitchen
-
Notifications
You must be signed in to change notification settings - Fork 2
/
check_no_bootimg
executable file
·49 lines (41 loc) · 1 KB
/
check_no_bootimg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
############################################################################
#
# Copyright (c) 2011 - dsixda ([email protected])
#
# Android 厨房是100%免费。此脚本文件仅供个人或学习使用
# by hwh132 越狱 汉化
#
############################################################################
dest_dir=$1
kitchen_dir=`pwd`
if [ "$dest_dir" == "" ]
then
cd WORKING_*
dest_dir=`pwd`
else
cd $dest_dir
fi
if [ ! -e boot.img ]
then
echo
echo "警告: 找不到有效的 boot.img ,您可以选择来添加"
echo " '假的' boot.img,让厨房的功能仍然可以"
echo " 正常工作."
echo
echo " 此 boot.img 会在你生成 ROM "
echo " ZIP 文件时自动删除."
echo
echo -n \
"添加 boot.img (y/n)? (默认: y): "
read add_it
echo
if [ "$add_it" != "n" ]
then
echo "复制空的 boot.img ..."
cp $kitchen_dir/tools/nullBoot.img $dest_dir/boot.img
else
echo "取消"
fi
cd $kitchen_dir
echo
fi