#574465 ifupdown: should have support for an "ordered" directory

Package:
ifupdown
Source:
ifupdown
Description:
high level tools to configure network interfaces
Submitter:
Ohad Lutzky
Date:
2010-03-18 12:27:05 UTC
Severity:
wishlist
#574465#5
Date:
2010-03-18 12:23:02 UTC
From:
To:
*** Please type your report below this line ***

Every package sticks its own files in /etc/network/if-*.d, unaware of
what other files are there. The order of running the scripts is
determined, arbitrarily, by their filename. This is made worse by
various scripts which believe they should be "first", and prepend 00 to
the filename.

My suggestion is to use the same solution for /etc/rcN.d, which has
ordered symlinks for /etc/init.d (apache uses a similar configuration in
debian, with sites.available and sites.enabled).

The attached patch will use /etc/network/if-%s.ordered.d instead of
/etc/network/if-%s.d if it is available. If not, the previous
functionality is preserved.