anykernel.sh: move included file permissions to editable area

This commit is contained in:
osm0sis committed 2014-03-01 16:01:59 -04:00
1 parent ad031d587e
commit 8479d86085
2 files changed
+10 -5

No files matched your search

+3 -3
View File
@@ -42,10 +42,10 @@ Similarly, "line before string" and "line replace string" are the search strings
// Instructions
1- Place zImage in the in the root
1- Place zImage in the root
2- Place any required ramdisk files in /ramdisk
3- Place any required patch files (partial files which go with commands) in /patch
4- Modify the anykernel.sh to add your kernel's name, boot partition location, and methods for any required ramdisk modifications.
3- Place any required patch files (generally partial files which go with commands) in /patch
4- Modify the anykernel.sh to add your kernel's name, boot partition location, permissions for included ramdisk files, and use methods for any required ramdisk modifications.
5- zip -r9 your.zip *
Not required, but any tweaks you can't hardcode into the source should be added with a bootscript.sh like is done in the example provided.
+7 -2
View File
@@ -25,8 +25,7 @@ split_img=/tmp/anykernel/split_img;
patch=/tmp/anykernel/patch;
cd $ramdisk;
chmod -R 644 $ramdisk
chmod -R 755 $bin $ramdisk/sbin;
chmod -R 755 $bin;
mkdir -p $split_img;
# dump boot and extract ramdisk
@@ -97,6 +96,12 @@ replace_file() {
## end methods
## AnyKernel permissions
# set permissions for included files
chmod -R 755 $ramdisk
chmod 644 $ramdisk/sbin/media_profiles.xml
## AnyKernel install
dump_boot;