When I am editing config files with vi, I would like to leave comments.In my example below I would like to keep the old configuration. Is something like this possible?
config wifi-iface 'wifinet2'
option device 'radio0'
...
#option ssid 'Main'
option ssid 'MainSSID'
#option bssid 'CC:...:CA'
option bssid 'CB:...:YA'
Yes, but if you ever use uci code and uci commit it erases all comments in the config files.
Actually when doing new install the configs are full of usefull comments.
5 Likes
Read somwhere that you can avoid this with "list", but don't remember exactly how to do.
Not recommending this, necessarily, but I think this is what you were referring to:
You can do this by creating a list of comments with a new list element for every comment line you want to add eg
list ...........comment 'This is a comment'
2 Likes