mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-31 12:50:02 +00:00
arm-autonomy: Add subdirectory config to ifupdown
Modify default interfaces file for network to scan sub-directory interfaces.d to let other recipes contribute to the network configuration file Change-Id: I72cf7fd8ccb51e3cdfdafc368adb4574393fdc08 Issue-Id: SCM-767 Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com> Reviewed-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
56196afc91
commit
16e4f7450e
@@ -0,0 +1,18 @@
|
|||||||
|
# Add support for interface configuration via interfaces.d directory. This
|
||||||
|
# feature can be used by other packages to add network interface
|
||||||
|
# configuration by adding network network interface configuration file under
|
||||||
|
# interfaces.d directory.
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
# Add scan of interfaces.d to interfaces file
|
||||||
|
cp -f ${WORKDIR}/interfaces ${WORKDIR}/interfaces.subdir
|
||||||
|
echo "source-directory ${sysconfdir}/network/interfaces.d/"
|
||||||
|
>> ${WORKDIR}/interfaces.subdir
|
||||||
|
|
||||||
|
# Create interfaces.d script in case nobody is adding a script
|
||||||
|
# so that there is no error about non existing directory
|
||||||
|
install -d -m 755 ${D}${sysconfdir}/network/interfaces.d
|
||||||
|
|
||||||
|
# Install our file instead of the original one
|
||||||
|
install -m 644 interfaces.subdir ${D}${sysconfdir}/network/interfaces
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user