Why ubus call do not work in custom script?
RUTX08 | RUTX_R_00.07.04.3
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
sleep 60
echo "sleep done" > /tmp/script_runs
ubus call ioman.gpio.din1 status >> /tmp/script_runs
echo "DONE" >> /tmp/script_runs
exit 0
But my logfile contains only:
root@Teltonika-RUTX08:~# cat /tmp/script_runs
sleep done
DONE
root@Teltonika-RUTX08:~#
root@Teltonika-RUTX08:~# ubus call ioman.gpio.din1 status
{
"value": "1",
"direction": "in",
"hr_state": "High level",
"bi_dir": false,
"invert_input": false
}
root@Teltonika-RUTX08:~#
Is this a bug?