Jump to content


Photo

Boot scripts

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Alkapton

Alkapton

    Regular

  • Members
  • PipPip
  • 66 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.

  • 0

#2
droiddruid

droiddruid

    Enthusiast

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

  • 0

#3
Alkapton

Alkapton

    Regular

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

  • 0

#4
Alkapton

Alkapton

    Regular

  • Members
  • PipPip
  • 66 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.

  • 0

#5
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,878 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X
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/*

  • 0

#6
Alkapton

Alkapton

    Regular

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

  • 0

#7
Alkapton

Alkapton

    Regular

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

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users