I am getting a Parse error from a uci commit command. I am led to believe that this might be caused by an errant file in /etc/config. (See https://github.com/openwrt/luci/issues/3567)
Here is the error message:
root@openwrt# uci commit
uci: Parse error (EOF with unterminated ') at line 89, byte 346
How can I troubleshoot this? What advice can I get for identifying which of the dozen or so files is causing the error? Thanks.
For loop iterating over each file and running uci commit on them individually to find the bad one?
pinched from wiki ( thanks wiki dude! );
for x in /etc/config/*; do uci show "${x##*/}" >/dev/null || echo "$x is broken"; done
Wow! A speedy response with a correct answer!
And Presto! That solves the problem!
root@OpenWrt:~# for x in /etc/config/*; do uci show "${x##*/}" >/dev/null || echo "$x is broken"; done
uci: Parse error (EOF with unterminated ') at line 89, byte 346
/etc/config/snmpd is broken
Thanks!
@anon50098793 - Do you have a link to the wiki page where you found that tasty tidbit? I'd like to get as smart as you 
You just proved Rule of Life #17: Just type the error message into a search engine... (I could'a solved it myself...)
Thanks again.