wifi
wifi copied to clipboard
interfaces file keeps growing
I am using the wifi python classes. If I add and delete schemes several times, the interface file keeps getting longer. It looks like when a scheme is deleted, empty lines are left in its place. Then, when a new scheme is added, it is appended to the file, after the empty lines. All works correctly, but just is probably not the intended action.
oh weird. that's kind of funny. I was hoping eventually to get rid of the dependence on /etc/network/interfaces and maybe we could just serialize to JSON?
I'm not super worried about this, but it is kind of annoying. Here's the delete function: https://github.com/rockymeza/wifi/blob/master/wifi/scheme.py#L139-L155 If you wanted to write a pull request, that would be really great.