I added the following script to /etc/init.d/. The script ran properly, but now the LuCI>Service>Terminal interface isn't working (192.168.0.2 refused to connect).
I think the last line might be blocking the process. If that's the case, how can I fix it?
#!/bin/sh /etc/rc.common
START=99
start() {
sleep 3
chmod +x /etc/sing-box/rule.nft
/etc/sing-box/rule.nft
ip rule add fwmark 1 table 100
ip route add local 0.0.0.0/0 dev lo table 100
sing-box run -c /etc/sing-box/config.json
}
$ opkg list sing-box
sing-box - 1.9.3-1 - Sing-box is a universal proxy platform which supports hysteria, SOCKS, Shadowsocks,
ShadowTLS, Tor, trojan, VLess, VMess, WireGuard and so on.