All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
@ 2016-08-16 15:21 Matt Weber
  2016-08-16 15:36 ` Matthew Weber
  2016-08-16 16:34 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Matt Weber @ 2016-08-16 15:21 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Matt Weber <matthew.weber@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/*";                        \
 	) > $(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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
  2016-08-16 15:21 [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support Matt Weber
@ 2016-08-16 15:36 ` Matthew Weber
  2016-08-16 16:34 ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Matthew Weber @ 2016-08-16 15:36 UTC (permalink / raw)
  To: buildroot

All,

On Tue, Aug 16, 2016 at 10:21 AM, Matt Weber <
matthew.weber@rockwellcollins.com> wrote:

> Signed-off-by: Matt Weber <matthew.weber@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/*";                        \
>

Needs to be conditional for BR2_PACKAGE_IFUPDOWN supports this and busybox
does not



>         ) > $(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
>
>


-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure
Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted Third
Party Intellectual Property (TPIP) content must be encrypted and sent to
matthew.weber at corp.rockwellcollins.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160816/5fc54376/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
  2016-08-16 15:21 [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support Matt Weber
  2016-08-16 15:36 ` Matthew Weber
@ 2016-08-16 16:34 ` Khem Raj
  2016-08-16 20:25   ` Matthew Weber
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-08-16 16:34 UTC (permalink / raw)
  To: buildroot


> On Aug 16, 2016, at 8:21 AM, Matt Weber <matthew.weber@rockwellcollins.com> wrote:
> 
> Signed-off-by: Matt Weber <matthew.weber@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.asc>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
  2016-08-16 16:34 ` Khem Raj
@ 2016-08-16 20:25   ` Matthew Weber
  2016-08-16 20:33     ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Weber @ 2016-08-16 20:25 UTC (permalink / raw)
  To: buildroot

Khem,

On Tue, Aug 16, 2016 at 11:34 AM, Khem Raj <raj.khem@gmail.com> wrote:

>
> > On Aug 16, 2016, at 8:21 AM, Matt Weber <matthew.weber@
> rockwellcollins.com> wrote:
> >
> > Signed-off-by: Matt Weber <matthew.weber@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
>

That doesn't seem to work in this case.  Is seems it's keying off the word
source vs it being more shell like.


>
> >       ) > $(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
>
>


-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure
Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted Third
Party Intellectual Property (TPIP) content must be encrypted and sent to
matthew.weber at corp.rockwellcollins.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160816/571aea28/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
  2016-08-16 20:25   ` Matthew Weber
@ 2016-08-16 20:33     ` Khem Raj
  2016-08-17  1:23       ` Matthew Weber
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-08-16 20:33 UTC (permalink / raw)
  To: buildroot


> On Aug 16, 2016, at 1:25 PM, Matthew Weber <matthew.weber@rockwellcollins.com> wrote:
> 
> Khem,
> 
> On Tue, Aug 16, 2016 at 11:34 AM, Khem Raj <raj.khem at gmail.com <mailto:raj.khem@gmail.com>> wrote:
> 
> > On Aug 16, 2016, at 8:21 AM, Matt Weber <matthew.weber at rockwellcollins.com <mailto:matthew.weber@rockwellcollins.com>> wrote:
> >
> > Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com <mailto:matthew.weber@rockwellcollins.com>>
> > ---
> > package/skeleton/skeleton.mk <http://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 <http://skeleton.mk/> b/package/skeleton/skeleton.mk <http://skeleton.mk/>
> > index 1000161..c9dce10 100644
> > --- a/package/skeleton/skeleton.mk <http://skeleton.mk/>
> > +++ b/package/skeleton/skeleton.mk <http://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
> 
> That doesn't seem to work in this case.  Is seems it's keying off the word source vs it being more shell like.
> 

Is it run in Make context and not shell context ?

> 
> >       ) > $(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 <mailto:buildroot@busybox.net>
> > http://lists.busybox.net/mailman/listinfo/buildroot <http://lists.busybox.net/mailman/listinfo/buildroot>
> 
> 
> 
> 
> --
> Matthew L Weber / Pr Software Engineer
> Airborne Information Systems / Security Systems and Software / Secure Platforms
> MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
> www.rockwellcollins.com <http://www.rockwellcollins.com/>
> 
> Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com <mailto:matthew.weber@corp.rockwellcollins.com>.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160816/48d309a5/attachment.html>
-------------- 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/48d309a5/attachment.asc>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support
  2016-08-16 20:33     ` Khem Raj
@ 2016-08-17  1:23       ` Matthew Weber
  0 siblings, 0 replies; 6+ messages in thread
From: Matthew Weber @ 2016-08-17  1:23 UTC (permalink / raw)
  To: buildroot

Khem,

On Aug 16, 2016 3:33 PM, "Khem Raj" <raj.khem@gmail.com> wrote:
>
>
>> On Aug 16, 2016, at 1:25 PM, Matthew Weber <
matthew.weber@rockwellcollins.com> wrote:
>>
>> Khem,
>>
>> On Tue, Aug 16, 2016 at 11:34 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>>
>>>
>>> > On Aug 16, 2016, at 8:21 AM, Matt Weber <
matthew.weber@rockwellcollins.com> wrote:
>>> >
>>> > Signed-off-by: Matt Weber <matthew.weber@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
>>
>>
>> That doesn't seem to work in this case.  Is seems it's keying off the
word source vs it being more shell like.
>>
>
>
> Is it run in Make context and not shell context ?

The ifupdown daemon consumes the file,  it isn't executed

>
>>>
>>> >       ) > $(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
>>>
>>
>>
>>
>> --
>> Matthew L Weber / Pr Software Engineer
>> Airborne Information Systems / Security Systems and Software / Secure
Platforms
>> MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
>> www.rockwellcollins.com
>>
>> Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and sent
to matthew.weber at corp.rockwellcollins.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160816/78fe30df/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-17  1:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-16 15:21 [Buildroot] [PATCH] skeleton: /etc/network/interface.d/* support Matt Weber
2016-08-16 15:36 ` Matthew Weber
2016-08-16 16:34 ` Khem Raj
2016-08-16 20:25   ` Matthew Weber
2016-08-16 20:33     ` Khem Raj
2016-08-17  1:23       ` Matthew Weber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.