debinterface icon indicating copy to clipboard operation
debinterface copied to clipboard

Interfaces file formatting

Open DamienBth opened this issue 10 years ago • 0 comments

Despite all examples in debian documentation :

iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0

works exactly like :

iface eth0 inet static
        address 192.168.10.1
        netmask 255.255.255.0

And I can't find any rule about indentation. So I consider it like a convention not a norm. I think you should do the same and handle both ways. But the choice is yours. https://github.com/dggreenbaum/debinterface/blob/master/interfacesReader.py#L81

PS : By the way, good job for this quite helpful tool :D

DamienBth avatar Oct 14 '15 14:10 DamienBth