Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,798 Members 49,879 Now Online
XDA Developers Android and Mobile Development Forum

start script at boot

Tip us?
 
PiereMallao
Old
#1  
Member - OP
Thanks Meter 1
Posts: 44
Join Date: Apr 2013
Default start script at boot

hi,

i'm using stock-rom 4.1.2 (root) on my xtz wifi 16gb. i can mount samba shares running 2 script in terminal emulator

Code:
Select Code
su
sh cifs.sh
sh mount.sh
cifs.sh starts cifs.ko and mount.sh mounts the samba share. su sh cifs.sh or ./cifs.sh don't work.

now i want to mount the share after boot the xtz. on linux i can use init.d, but on android init.d is read-only. there is no autostart.sh. in play store there are some app who starts autostart.sh (i.e. this https://play.google.com/store/apps/d...tostart&hl=de; i had to create the folder opt in /data and then create autostart.sh in /opt). bit it seems the scripts isn't loaded after bot the device.

is there an other solution for autostart the scripts on xtz?

piere
 
Felimenta97
Old
#2  
Felimenta97's Avatar
Senior Member
Thanks Meter 2304
Posts: 7,801
Join Date: Aug 2011
Location: Ribeirão Preto
Download ROM Toolbox (Pro or Lite), go to Scripts, choose Import Script, look for your script. After added, press and hold over your script, and choose Set At Boot, or smth like that.

That Should do

The Following User Says Thank You to Felimenta97 For This Useful Post: [ Click to Expand ]
 
PiereMallao
Old
#3  
Member - OP
Thanks Meter 1
Posts: 44
Join Date: Apr 2013
thx, works.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes