Running a simple script to enable / disable the IO scheduler via SMS messages. On the whole this seems to be working fine, however in the use case where the scheduler is enabled at a time when the output is scheduled to be turned on, the output state is remaining off.
Manually running /etc/init.d/ioman_scheduler reload or /etc/init.d/ioman_scheduler restart in a terminal shell achieves the desired result and the output status is switched to on, however if this same command is added to the script it appears to execute without any errors however the output is not turned on.
Is there an alternate scripting method for forcing an update of the output status after the ioman scheduler is enabled via UCI command? I feel that there is something trivial that I'm missing here.
Example of script is as follows:
#!/bin/sh
uci set ioman.scheduler_general.enabled='1'
uci commit
/etc/init.d/ioman_scheduler reload