diff --git a/README b/README index edca8f8..d352263 100644 --- a/README +++ b/README @@ -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. diff --git a/anykernel.sh b/anykernel.sh index d17023c..43a5873 100755 --- a/anykernel.sh +++ b/anykernel.sh @@ -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;