FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14081 questions

16726 answers

27451 comments

53724 members

0 votes
26 views 0 comments
by

Hello

I can't run this STARTUP SCRIPT:

# Put your custom commands here that should be executed once

# the system init finished. By default this file does nothing.

gsmctl -S -s "[redacted by moderators] Inicio Equipo TRB245 LL"

lua /root/Loops2_5Feb23.lua

Somebody can help me?

Thanks and best regards.

FW: TRB2_R_00.07.03

1 Answer

0 votes
by

Hello,

  

A few things could be tried here:

  • Send SMS command requires the phone number to be in an international format and the + symbol should be replaced by two 0, e.g. 00370xxxxxxxx;
  • /root in /root/Loops2_5Feb23.lua is not needed at the beginning of the file, as /root directory is simply identified by / in OpenWRT
  • Make sure permissions are set for the lua file by running this command: chmod +x /Loops2_5Feb23.lua
If this does not help, logs could be checked for a hint of what could be wrong, by running a command logread using SSH or CLI.

  

Best regards,
DaumantasG