v1ral_ITS

kereln-init.sh

Mar 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. mount -o remount,rw -t auto /system
  4. mount -o remount,rw -t auto /data
  5. mount -t rootfs -o remount,rw rootfs
  6.  
  7. if [ ! -e /system/etc/init.d ]; then
  8.    mkdir /system/etc/init.d
  9.    chown -R root.root /system/etc/init.d
  10.    chmod -R 755 /system/etc/init.d
  11. fi
  12.  
  13. for FILE in /system/etc/init.d/*; do
  14.    sh $FILE >/dev/null
  15. done;
  16.  
  17. mount -t rootfs -o remount,ro rootfs
  18. mount -o remount,rw -t auto /data
  19. mount -o remount,ro -t auto /system
Add Comment
Please, Sign In to add comment