diff options
author | osm0sis <osm0sis@outlook.com> | 2017-10-14 13:34:00 -0300 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2017-10-14 13:34:00 -0300 |
commit | 721c5db7c27a000c1762431ed7a3d46ef3eac5d2 (patch) | |
tree | 77dc1b2b1db81220eb15ea96f626255765b55f6d | |
parent | aa1377c9abc6f991a28c4e54e87adc55d84c9aa7 (diff) |
Example: clean ups and fixes for current functions
- remove more things confusing to new adopters (AK2 does not root)
- update patch_fstab examples for corrected syntax
DO NOT MERGE if you have already updated your ramdisk properly for your device
-rwxr-xr-x | anykernel.sh | 21 | ||||
-rw-r--r-- | patch/init.superuser | 4 | ||||
-rw-r--r-- | patch/init.superuser.rc | 20 |
3 files changed, 6 insertions, 39 deletions
diff --git a/anykernel.sh b/anykernel.sh index acff2df..f6afc62 100755 --- a/anykernel.sh +++ b/anykernel.sh @@ -28,8 +28,9 @@ is_slot_device=0; ## AnyKernel permissions # set permissions for included ramdisk files -chmod -R 755 $ramdisk -chmod 644 $ramdisk/sbin/media_profiles.xml +chmod -R 750 $ramdisk/*; +chmod 644 $ramdisk/sbin/media_profiles.xml; +chmod -R root:root $ramdisk/*; ## AnyKernel install @@ -47,21 +48,11 @@ backup_file init.tuna.rc; insert_line init.tuna.rc "nodiratime barrier=0" after "mount_all /fstab.tuna" "\tmount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data remount nosuid nodev noatime nodiratime barrier=0"; append_file init.tuna.rc "dvbootscript" init.tuna; -# init.superuser.rc -if [ -f init.superuser.rc ]; then - backup_file init.superuser.rc; - replace_string init.superuser.rc "Superuser su_daemon" "# su daemon" "\n# Superuser su_daemon"; - prepend_file init.superuser.rc "SuperSU daemonsu" init.superuser; -else - replace_file init.superuser.rc 750 init.superuser.rc; - insert_line init.rc "init.superuser.rc" after "on post-fs-data" " import /init.superuser.rc"; -fi; - # fstab.tuna backup_file fstab.tuna; -patch_fstab fstab.tuna /system ext4 options "nodiratime,barrier=0" "nodev,noatime,nodiratime,barrier=0,data=writeback,noauto_da_alloc,discard"; -patch_fstab fstab.tuna /cache ext4 options "barrier=0,nomblk_io_submit" "nosuid,nodev,noatime,nodiratime,errors=panic,barrier=0,nomblk_io_submit,data=writeback,noauto_da_alloc"; -patch_fstab fstab.tuna /data ext4 options "nomblk_io_submit,data=writeback" "nosuid,nodev,noatime,errors=panic,nomblk_io_submit,data=writeback,noauto_da_alloc"; +patch_fstab fstab.tuna /system ext4 options "noatime,barrier=1" "noatime,nodiratime,barrier=0"; +patch_fstab fstab.tuna /cache ext4 options "barrier=1" "barrier=0,nomblk_io_submit"; +patch_fstab fstab.tuna /data ext4 options "data=ordered" "nomblk_io_submit,data=writeback"; append_file fstab.tuna "usbdisk" fstab; # end ramdisk changes diff --git a/patch/init.superuser b/patch/init.superuser deleted file mode 100644 index 0748763..0000000 --- a/patch/init.superuser +++ /dev/null @@ -1,4 +0,0 @@ -# SuperSU daemonsu -service daemonsu /system/xbin/daemonsu --auto-daemon - user root - group root diff --git a/patch/init.superuser.rc b/patch/init.superuser.rc deleted file mode 100644 index fc6b6a2..0000000 --- a/patch/init.superuser.rc +++ /dev/null @@ -1,20 +0,0 @@ -# SuperSU daemonsu -service daemonsu /system/xbin/daemonsu --auto-daemon - user root - group root - -# Superuser su_daemon -service su_daemon /system/xbin/su --daemon - oneshot - -on property:persist.sys.root_access=0 - stop su_daemon - -on property:persist.sys.root_access=2 - stop su_daemon - -on property:persist.sys.root_access=1 - start su_daemon - -on property:persist.sys.root_access=3 - start su_daemon |