Jump to content


Photo

run script on box boot


  • Please log in to reply
8 replies to this topic

#1 daveraver

  • Senior Member
  • 412 posts

+5
Neutral

Posted 24 February 2018 - 16:22

hi all, I am trying it by 2 ways:

by enigma2_pre_start.sh or,
running a startup service on /etc/init.d/

and both no working.

Is these ways working on openpli 6.1? Am I doing things wrong?? I put a sleep 80 before running script...

tested on Formuler f1 box.

thanks in advance.

Edited by daveraver, 24 February 2018 - 16:23.


Re: run script on box boot #2 WanWizard

  • PLi® Core member
  • 70,925 posts

+1,835
Excellent

Posted 24 February 2018 - 16:31

Did you make the script executable?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: run script on box boot #3 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 24 February 2018 - 17:07

If you add a service script to /etc/init.d, don't forget to create symbolic links in /etc/rc?.d, otherwise they won't get started.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: run script on box boot #4 Pr2

  • PLi® Contributor
  • 6,199 posts

+261
Excellent

Posted 24 February 2018 - 17:12

Why create the symlink manually?
Don't users have to use the  update-rc.d  command to create or delete the symlink?

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: run script on box boot #5 WanWizard

  • PLi® Core member
  • 70,925 posts

+1,835
Excellent

Posted 24 February 2018 - 17:45

If the script is created with the proper headers, that works. If not, the user either needs to know the update-rc.d update syntax, or make manual links...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: run script on box boot #6 daveraver

  • Senior Member
  • 412 posts

+5
Neutral

Posted 24 February 2018 - 19:23

yes, it run, manually on box system loaded state, make executable, and run 'update-rc.d instance defaults' but it seems the openpli image was corrupted, i will try with a fresh image install. thanks to all

Edited by daveraver, 24 February 2018 - 19:24.


Re: run script on box boot #7 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 25 February 2018 - 09:30

Why create the symlink manually?
Don't users have to use the  update-rc.d  command to create or delete the symlink?

Yes you can use update-rc.d but I think it's more cumbersome than to create a few symlinks yourself.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: run script on box boot #8 daveraver

  • Senior Member
  • 412 posts

+5
Neutral

Posted 2 March 2018 - 11:28

Well, It seems I am not able to run the rclone binary on startup, I've achieve it running a check binary alive script, */1 * * * * , once per minute on cron, it's the only way to run rclone. no init.d script and no enigma2_pre_start script have worked. rclone doesn't run up to the system is completely loaded, or maybe up to network is loaded, as I've could see. I dont know if I am wrong in my apreciations.

 

Thanks, 



Re: run script on box boot #9 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 March 2018 - 12:55

I use on my uno4kse a shell script

 

/etc/init.d/rcS.local

 

openpli starts that on systemsstart (with /etc/inittab) with a last link S95local in the rcS.d directory

 

You must only create the /etc/inid,d/rcS.local as a script file and set it so executable

 

It works perfectly on my system


Edited by anudanan, 2 March 2018 - 12:56.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users