Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # AnyKernel2 Ramdisk Mod Script
  2. # osm0sis @ xda-developers
  3.  
  4. ## AnyKernel setup
  5. # begin properties
  6. properties() { '
  7. kernel.string=Stock athene kernel with WireGuard
  8. do.devicecheck=1
  9. do.modules=0
  10. do.cleanup=1
  11. do.cleanuponabort=0
  12. device.name1=athene
  13. device.name2=
  14. device.name3=
  15. device.name4=
  16. device.name5=
  17. '; } # end properties
  18.  
  19. # shell variables
  20. block=/dev/block/platform/soc.0/7824900.sdhci/by-name/boot;
  21. is_slot_device=0;
  22. ramdisk_compression=auto;
  23.  
  24.  
  25. ## AnyKernel methods (DO NOT CHANGE)
  26. # import patching functions/variables - see for reference
  27. . /tmp/anykernel/tools/ak2-core.sh;
  28.  
  29.  
  30. ## AnyKernel file attributes
  31. # set permissions/ownership for included ramdisk files
  32. chmod -R 750 $ramdisk/*;
  33. chmod -R 755 $ramdisk/sbin;
  34. chown -R root:root $ramdisk/*;
  35.  
  36.  
  37. ## AnyKernel install
  38. dump_boot;
  39.  
  40. # begin ramdisk changes
  41.  
  42. append_file init.rc "wg-iptables" init.rc-wg-iptables.patch
  43.  
  44. # end ramdisk changes
  45.  
  46. write_boot;
  47.  
  48. ## end install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement