Jump to content


Boot scripts

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Alkapton

Alkapton

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:g300
Is there any way to execute a script file [toward the end of] at boot time?

Where is best place to keep script - I notice if I put script at / it does not survive re-boot.
Thanks for any help.


#2
droiddruid

droiddruid

    Enthusiast

  • Members
  • PipPipPip
  • 210 posts
  • Gender:Male
  • Location:Newcastle, UK
Init.d should do what you need.  Go go search


#3
Alkapton

Alkapton

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:g300
b hell that was fast. And I kick myself - I know Linux enougth to know that.


#4
Alkapton

Alkapton

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:g300
Except I do not have init.d - I have a init.rc but do not understand it enougth to risk just adding what I want at the end.

My idea is to set up zram automatically at boot time.


#5
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 4,755 posts
  • Gender:Male
  • Location:Googleplex
  • Interests:Space
  • Devices:Nexus 4
you need to first create an init.d folder in

system / etc /

now you need to enable init.d support, you can easily do this by adding this line to the bottom of

system / etc / init.qcom.post_boot.sh

/system/etc/init.d/*

Posted ImagePosted ImagePosted Image


#6
Alkapton

Alkapton

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:g300
Tillaz is hero, I was trawling net and getting comfused by over complex solutions, this works like dream.


#7
Alkapton

Alkapton

    Newbie

  • Members
  • Pip
  • 45 posts
  • Devices:g300
Tillaz is hero, I was trawling net and getting comfused by over complex solutions, this works like dream.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users