+- +-

+- Site Stats

Members
Total Members: 291
Latest: bibobdaddy
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 862
Total Topics: 145
Most Online Today: 36
Most Online Ever: 5090
(August 22, 2026, 08:31:27 pm)
Users Online
Members: 0
Guests: 29
Total: 29

Top Posters

rcunningham
Posts: 322
Drewie88
Posts: 74
Matt
Posts: 48
rm571
Posts: 42
edodson84
Posts: 38

Author Topic: [MOD] Alternative INIT.D support  (Read 412 times)

0 Members and 1 Guest are viewing this topic.

Offline

  • Member
  • **
  • Posts: 11
    • View Profile
[MOD] Alternative INIT.D support
« on: September 02, 2016, 08:43:10 pm »
I never did make a working ramdisk with native init.d support, but I DID find a better solution than the install-recovery.sh method.

I added a few lines to the end of /system/etc/init.gammaw.post_boot.sh, here's how it looks:
Code: [Select]
#!/system/bin/sh
...
...

if [ -d ${INIT_DIR:=$ANDROID_ROOT/etc/init.d} ]; then
logwrapper busybox run-parts $INIT_DIR
elif mount -o remount,rw $ANDROID_ROOT; then
mkdir -p $INIT_DIR
chown 0.0 $INIT_DIR
chmod 0755 $INIT_DIR
mount -o remount,ro $ANDROID_ROOT
fi
(NOTE: the elif condition, and lines before the fi keyword, aren't necessary.)

This script is executed during the last boot phase, when the boot animation stops, and is responsible for applying hardware-specific settings. Therefore, if any governor, scheduler, or virtual memory parameters are modified via init.d script, they must be done here. Remember to set your init.d scripts' permissions:
Code: [Select]
chown 0.0 /etc/init.d/script
chmod 0750 /etc/init.d/script

(NOTE: if your init.d scripts are not working, make sure busybox is installed, script names do not include an extension (script, not script.sh), and /etc/init.gammaw.post_boot.sh has root permissions set to 0750.)

Share on Bluesky Share on Facebook


Offline

  • Developer
  • Administrator
  • Senior Member
  • *
  • Posts: 322
  • Location: Portland, ME
    • View Profile
    • TracFone Developers
Re: [MOD] Alternative INIT.D support
« Reply #1 on: September 18, 2016, 11:31:40 pm »
Thanks for the info! It's always nice to have multiple ways to do things.
ROM Developer - LG Fan - Site Founder - Volvo Owner & Enthusiast

Register for TracFone Developers!

YouTube: http://www.youtube.com/ryancunningham12
Instagram: rcunningham757
Snapchat: the-ryandroid
Donate: https://www.paypal.me/RyanCunningham

 

User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Recent Posts

Experience the Thrill of Casual Dating in Your Region in Your Town by Casey Burdette
December 18, 2024, 07:23:23 am

Connect with Local Women in Your Town by Casey Burdette
November 30, 2024, 02:51:59 pm

13yo GIRL BUZZ CAST 16yo GIRLS TELEGRAM CHANNEL by acr123
November 11, 2024, 02:45:57 pm

9yo GIRLS SEX LS BD GALLERY by acr123
November 11, 2024, 02:45:14 pm

LSMODEL CLOUD LS-MAGAZINE SHARE by acr123
November 11, 2024, 02:43:26 pm

18year GIRLS FILES 6year GIRL **** by acr123
November 11, 2024, 02:42:22 pm

Search Beautiful Womans in your city for night by Casey Burdette
August 27, 2024, 06:12:00 pm

Search Prettys Womans from your town for night - True Females by Casey Burdette
August 19, 2024, 06:54:20 pm

Search Pretty Girls in your town for night by Casey Burdette
August 17, 2024, 10:24:12 am

Womans from your town - Verified Ladies by Casey Burdette
July 31, 2024, 11:58:03 am