Openwrt-NetKeeper icon indicating copy to clipboard operation
Openwrt-NetKeeper copied to clipboard

sh /tmp/confnetwork.sh出现的问题

Open jiananxu opened this issue 7 years ago • 1 comments

/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 [] import [] changes [] commit [] add add_list .

.

Options: -c set the search path for config files (default: /etc/config) -d set the delimiter for list values in uci show -f use as input instead of stdin -m when importing, merge data into an existing package -n name unnamed sections on export (default) -N don't name unnamed sections -p add a search path for config change files -P add a search path for config change files and use as default -q quiet mode (don't print error messages) -s force strict mode (stop on parser errors, default) -S disable strict mode -X do not use extended syntax on 'show'

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

jiananxu avatar Sep 13 '16 11:09 jiananxu

你好这个问题我今天也遇到了,我这边是用ubuntu和win10(xshell)上传的。上传的路由器系统后。他会在confnetwork.sh文件的每一行都加上一个^M的东西。所以在sh执行时会报错误。

  • 你可以手动改一下文件再执行一边;
  • 在命令行一条一条的输入;

祝你好运

forvoid avatar May 15 '17 15:05 forvoid