From e40e655e408ee84ecfa129cbbb4f169f4d15488a Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 10 Aug 2023 13:22:03 -0300 Subject: [PATCH] Example: add commented multi-parition attributes functions DO NOT MERGE if you have already updated your zip properly for your device --- anykernel.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/anykernel.sh b/anykernel.sh index d941409..d7b503a 100755 --- a/anykernel.sh +++ b/anykernel.sh @@ -20,14 +20,13 @@ supported.patchlevels= '; } # end properties ### AnyKernel install -# begin attributes +## boot files attributes attributes() { set_perm_recursive 0 0 755 644 $ramdisk/*; set_perm_recursive 0 0 750 750 $ramdisk/init* $ramdisk/sbin; } # end attributes - -## boot shell variables +# boot shell variables block=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot; is_slot_device=0; ramdisk_compression=auto; @@ -59,7 +58,13 @@ write_boot; # use flash_boot to skip ramdisk repack, e.g. for devices with init_ ## end boot install -## init_boot shell variables +## init_boot files attributes +#init_boot_attributes() { +#set_perm_recursive 0 0 755 644 $ramdisk/*; +#set_perm_recursive 0 0 750 750 $ramdisk/init* $ramdisk/sbin; +#} # end attributes + +# init_boot shell variables #block=init_boot; #is_slot_device=1; #ramdisk_compression=auto; @@ -75,7 +80,13 @@ write_boot; # use flash_boot to skip ramdisk repack, e.g. for devices with init_ ## end init_boot install -## vendor_kernel_boot shell variables +## vendor_boot files attributes +#vendor_boot_attributes() { +#set_perm_recursive 0 0 755 644 $ramdisk/*; +#set_perm_recursive 0 0 750 750 $ramdisk/init* $ramdisk/sbin; +#} # end attributes + +# vendor_kernel_boot shell variables #block=vendor_kernel_boot; #is_slot_device=1; #ramdisk_compression=auto;