uci:第 12 行、字节 23 处出现解析错误(不同类型的部分覆盖具有相同名称的先前部分)

uci:第 12 行、字节 23 处出现解析错误(不同类型的部分覆盖具有相同名称的先前部分)
BusyBox v1.28.4 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.2, r7676-cddd7b4c77
 -----------------------------------------------------
root@mortar:~# opkg upgrade $(opkg list-upgradable | cut -d ' ' -f 1)
Configuring luci-lib-nixio.
Configuring luci-lib-jsonc.
Configuring luci-base.
Configuring luci-mod-admin-full.
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
Configuring luci-app-firewall.
Configuring luci-proto-ppp.
Configuring luci-proto-ipv6.
Configuring luci.
Configuring luci-ssl.
Configuring luci-app-upnp.
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23

有帮助:-)。解析错误在哪个文件中

答案1

# cd /etc/config
# uci export 2>&1 | grep -C5 '^uci:'
    option ports '5190'
    option comment 'AOL, iChat, ICQ'

config default
    option target 'Express'
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
    option proto 'udp'
    option pktsize '-500'

config reclassify
    option target 'Priority'
# grep -r 'config reclassify' .
./qos:config reclassify
# mv qos ~
# uci export 2>&1 | grep -C5 '^uci:'
#

相关内容