Error in running script in openwrt

Details of error reporting are as follows
[email protected] :~# /root/connect_
-ash: /root/connect_ not found

When running a script, the above error occurs. The variables in the script are defined as
code = curl - O/dev/null - SW% {http_code} Com

After querying, it is found that the shell only supports ash in openwrt, while Bash is used by default in Linux and Ubuntu

The solution here is when defining variables, the left and right sides of the equal sign '=' are not left blank, as shown in the example
code = curl - O/dev/null - SW% {http_code} Com

The operation of variables in openwrt still needs attention

    variable operation only supports expr, not $[], $(()), let. These three formats must leave a space around the plus sign “+”

Read More: