Openwrt-NetKeeper
Openwrt-NetKeeper copied to clipboard
sh /tmp/confnetwork.sh出现的问题
/tmp$ sh /tmp/confnetwork.sh
uci: Invalid argument
uci: Invalid argument
uci: Parse error
uci: Invalid argument
uci: Parse error
Usage: uci [
Commands:
batch
export [
Options:
-c
uci: Parse error Syntax: /etc/init.d/firewall [command]
Available commands: start Start the service stop Stop the service restart Restart the service reload Reload configuration files (or restart if that fails) enable Enable service autostart disable Disable service autostart
Syntax: /etc/init.d/network [command]
Available commands: start Start the service stop Stop the service restart Restart the service reload Reload configuration files (or restart if that fails) enable Enable service autostart disable Disable service autostart
Syntax: /etc/init.d/network [command]
Available commands: start Start the service stop Stop the service restart Restart the service reload Reload configuration files (or restart if that fails) enable Enable service autostart disable Disable service autostart
你好这个问题我今天也遇到了,我这边是用ubuntu和win10(xshell)上传的。上传的路由器系统后。他会在confnetwork.sh文件的每一行都加上一个^M
的东西。所以在sh执行时会报错误。
- 你可以手动改一下文件再执行一边;
- 在命令行一条一条的输入;
祝你好运