Hello,
I have a RUT901 and a Single Board Computer connected to it using ethernet to exchange data. What I want is that when the RUT901 is rebooted using a SMS as defined in the SMS utilities, the power to the SBC be switched off during the reboot of the RUT901, then switched on so as to perform the intended task.
I found an example of switching the output in this section, and I have understood that switching the output ON requires adding the following line to the startup script :
ubus call ioman.gpio.dio0 update ‘{“value”:“1”}’
but unfortunately the output does not switch on when the booting process is complete. What is the exact syntax? Currently my startup file (as seen in the section System/Maintenance/Custom scripts is:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
ubus call ioman.gpio.dio0 update ‘{“value”:“1”}’
exit 0