While setting up wifi on my MR3020 and doing a uci show i got the following error
root@LEDE:~# uci show
uci: Parse error (invalid command) at line 2, byte 0
So obviously I messed up a config file somewhere but the error wasn’t very informative. So after some googling i found the following command which will tell you which file/line is the issue.
root@LEDE:~# for CONF in /etc/config/* ; do uci show "${CONF##*/}" > /dev/null || echo "${CONF}"; done
uci: Parse error (invalid command) at line 2, byte 0
/etc/config/wireless
Checked the /etc/config/wireless file and i had made a typo.