Files
anykernel3-rhode/anykernel.sh
T

44 lines
946 B
Bash
Raw Normal View History

2022-11-11 23:42:31 -04:00
### AnyKernel3 Ramdisk Mod Script
## osm0sis @ xda-developers
### AnyKernel setup
2023-08-10 20:04:53 -03:00
# global properties
properties() { '
kernel.string=NetHunter Kernel for Motorola Moto G52 (rhode)
do.devicecheck=1
do.modules=1
2020-01-18 07:22:09 -04:00
do.systemless=1
do.cleanup=1
2017-02-17 22:26:44 +01:00
do.cleanuponabort=0
device.name1=rhode
device.name2=rhode_g
device.name3=XT2221-1
device.name4=XT2221-2
2014-10-14 16:37:48 -03:00
device.name5=
supported.versions=16
2019-07-20 18:23:48 -03:00
supported.patchlevels=
2023-08-22 01:53:06 -03:00
supported.vendorpatchlevels=
'; } # end properties
2023-08-10 20:04:53 -03:00
2022-11-11 23:42:31 -04:00
### AnyKernel install
## boot files attributes
boot_attributes() {
set_perm_recursive 0 0 755 644 $RAMDISK/*;
set_perm_recursive 0 0 750 750 $RAMDISK/init* $RAMDISK/sbin;
2022-11-11 23:42:31 -04:00
} # end attributes
# boot shell variables
BLOCK=/dev/block/bootdevice/by-name/boot;
IS_SLOT_DEVICE=1;
RAMDISK_COMPRESSION=auto;
PATCH_VBMETA_FLAG=auto;
2022-11-11 23:42:31 -04:00
# import functions/variables and setup patching - see for reference (DO NOT REMOVE)
. tools/ak3-core.sh;
# boot install
dump_boot;
write_boot;
## end boot install