[Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support

Khem Raj raj.khem at gmail.com
Tue Aug 16 16:34:20 UTC 2016


> On Aug 16, 2016, at 8:21 AM, Matt Weber <matthew.weber at rockwellcollins.com> wrote:
> 
> Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com>
> ---
> package/skeleton/skeleton.mk                    | 2 ++
> system/device_table.txt                         | 1 +
> system/skeleton/etc/network/interfaces.d/.empty | 0
> 3 files changed, 3 insertions(+)
> create mode 100644 system/skeleton/etc/network/interfaces.d/.empty
> 
> diff --git a/package/skeleton/skeleton.mk b/package/skeleton/skeleton.mk
> index 1000161..c9dce10 100644
> --- a/package/skeleton/skeleton.mk
> +++ b/package/skeleton/skeleton.mk
> @@ -151,6 +151,8 @@ define SKELETON_SET_NETWORK_LOCALHOST
> 		echo ;                                               \
> 		echo "auto lo";                                      \
> 		echo "iface lo inet loopback";                       \
> +		echo ;                                               \
> +		echo "source interfaces.d/*";                        \

its portable to use . instead of source keyword

> 	) > $(TARGET_DIR)/etc/network/interfaces
> endef
> 
> diff --git a/system/device_table.txt b/system/device_table.txt
> index dc1af51..69b1d46 100644
> --- a/system/device_table.txt
> +++ b/system/device_table.txt
> @@ -17,5 +17,6 @@
> /etc/network/if-pre-up.d		d	755	0	0	-	-	-	-	-
> /etc/network/if-down.d			d	755	0	0	-	-	-	-	-
> /etc/network/if-post-down.d		d	755	0	0	-	-	-	-	-
> +/etc/network/interfaces.d		d	755	0	0	-	-	-	-	-
> # uncomment this to allow starting x as non-root
> #/usr/X11R6/bin/Xfbdev		     	f	4755	0	0	-	-	-	-	-
> diff --git a/system/skeleton/etc/network/interfaces.d/.empty b/system/skeleton/etc/network/interfaces.d/.empty
> new file mode 100644
> index 0000000..e69de29
> --
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160816/948ab693/attachment-0002.asc>


More information about the buildroot mailing list