[Tinkerphones] default for Debian /etc/network/interfaces
jonas at jones.dk
Fri Feb 24 11:16:35 CET 2017
Quoting H. Nikolaus Schaller (2017-02-24 08:05:58)
> Am 23.02.2017 um 22:49 schrieb H. Nikolaus Schaller
> <hns at goldelico.com>:
>> So there is a fresh /e/n/i and /e/n/i.d created and it is set up to
>> source the /e/n/i.d
>> That is fine and like I hoped! So we can provide letux-usb0 or
>> letux-eth0 network configs for single interfaces so that e.g. USB
>> networking works out of the box even if you have no GUI.
>> Next I will check if that is already a feature of Jessie or was
>> introduced in Stretch.
> Ok, here is the result:
> - Wheezy only creates /e/n/i with "auto lo"
> - Jessie and Stretch both create empty /e/n/i.d and /e/n/i with only
> "source-directory /e/n/i.d"
Those patterns match some work done in postinst script of ifupdown -
applied if the file does not already exist when ifupdown is installed.
In the past, debian-installer created a custom file. Not sure if it
still does, and if maybe conditional to also installing ifupdown.
ifupdown is no longer the default: netbase 5.4 (released 2 months ago)
stopped recommending it.
> So it was already introduced in Jessie.
According to its changelog it was introduced in ifupdown 0.7.44
According to its changelog it was wupported in ifupdown2 since its
initial release, so should not be a problem if that package (declared as
providing and replacing ifupdown) automatically gets installed in a
Not sure if netscript-2.4 (also potentially auto-replacing ifupdown)
supports the "source-directory" syntax.
> Since it is very unlikely that anyone still wants to use Wheezy on the
> GTA04 it will work when using the default for /e/n/i and patching
> letux interfaces to /e/n/i.d
...as long as ifupdown or ifupdown2 is installed, yes.
> Specifically I want to make those interface configs part of the
> letux-kernel, so that they are maintained in Letux/etc/network and
> kept in sync with kernel interface naming (this sometimes changed in
> the past).
If you mean that you will include network setup snippets with a custom
kernel package, then I recommend that you consider following structuring
instead, by maintaining network config as a separate package - e.g. to
ease users switching to another kernel package.
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
More information about the Community