forked from dsixda/Android-Kitchen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_no_bootimg
More file actions
executable file
·50 lines (42 loc) · 1.17 KB
/
check_no_bootimg
File metadata and controls
executable file
·50 lines (42 loc) · 1.17 KB
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
50
############################################################################
#
# Copyright (c) 2011 - dsixda ([email protected])
#
# Android Kitchen is 100% free. This script file is intended for personal
# and/or educational use only. It may not be duplicated for monetary
# benefit or any other purpose without the permission of the developer.
#
############################################################################
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 "Warning: A valid boot.img is not found. You have the option to add a"
echo " 'fake' boot.img so that the features of the kitchen can still"
echo " function normally."
echo
echo " This boot.img will be automatically removed from your ROM's"
echo " ZIP file when it is built."
echo
echo -n \
"Add boot.img (y/n)? (default: y): "
read add_it
echo
if [ "$add_it" != "n" ]
then
echo "Copying null boot.img ..."
cp $kitchen_dir/tools/nullBoot.img $dest_dir/boot.img
else
echo "Cancelled"
fi
cd $kitchen_dir
echo
fi