Example: clean up some more for readability

This commit is contained in:
Chris Renshaw authored and GitHub committed 2022-11-11 23:42:31 -04:00
1 parent eb203ccd54
commit f14d70d54b
1 file changed
+11 -16
+11 -16
View File
@@ -1,5 +1,5 @@
# AnyKernel3 Ramdisk Mod Script
# osm0sis @ xda-developers
### AnyKernel3 Ramdisk Mod Script
## osm0sis @ xda-developers
### AnyKernel setup
# begin properties
@@ -19,6 +19,13 @@ supported.versions=
supported.patchlevels=
'; } # end properties
### AnyKernel install
# begin 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
block=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot;
@@ -26,22 +33,12 @@ is_slot_device=0;
ramdisk_compression=auto;
patch_vbmeta_flag=auto;
### AnyKernel methods (DO NOT CHANGE)
# import patching functions/variables - see for reference
. tools/ak3-core.sh;
### AnyKernel file attributes
# set permissions/ownership for included ramdisk files
set_perm_recursive 0 0 755 644 $ramdisk/*;
set_perm_recursive 0 0 750 750 $ramdisk/init* $ramdisk/sbin;
# import functions/variables and setup patching - see for reference (DO NOT REMOVE)
. tools/ak3-core.sh && attributes;
# boot install
dump_boot; # use split_boot to skip ramdisk unpack, e.g. for devices with init_boot ramdisk
# begin ramdisk changes
# init.rc
backup_file init.rc;
replace_string init.rc "cpuctl cpu,timer_slack" "mount cgroup none /dev/cpuctl cpu" "mount cgroup none /dev/cpuctl cpu,timer_slack";
@@ -58,8 +55,6 @@ patch_fstab fstab.tuna /cache ext4 options "barrier=1" "barrier=0,nomblk_io_subm
patch_fstab fstab.tuna /data ext4 options "data=ordered" "nomblk_io_submit,data=writeback";
append_file fstab.tuna "usbdisk" fstab;
# end ramdisk changes
write_boot; # use flash_boot to skip ramdisk repack, e.g. for devices with init_boot ramdisk
## end boot install