Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

interfaces file keeps growing #101

Open
Grandpa-G opened this issue May 10, 2016 · 1 comment
Open

interfaces file keeps growing #101

Grandpa-G opened this issue May 10, 2016 · 1 comment

Comments

@Grandpa-G
Copy link

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.

@rockymeza
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants