From 05742401238ce51e1ef0f840bc0c06b8c8e4ff33 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 24 Dec 2025 15:22:57 +0000 Subject: Adjust s6-rc db layout --- layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-coldplug | 0 layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-sysctl | 0 layout/rootfs/etc/s6-rc/source/init-eth0/down | 2 ++ layout/rootfs/etc/s6-rc/source/init-eth0/type | 1 + layout/rootfs/etc/s6-rc/source/init-eth0/up | 3 +++ 5 files changed, 6 insertions(+) create mode 100644 layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-coldplug create mode 100644 layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-sysctl create mode 100644 layout/rootfs/etc/s6-rc/source/init-eth0/down create mode 100644 layout/rootfs/etc/s6-rc/source/init-eth0/type create mode 100644 layout/rootfs/etc/s6-rc/source/init-eth0/up (limited to 'layout/rootfs/etc/s6-rc/source/init-eth0') diff --git a/layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-coldplug b/layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-coldplug new file mode 100644 index 0000000..e69de29 diff --git a/layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-sysctl b/layout/rootfs/etc/s6-rc/source/init-eth0/dependencies.d/init-sysctl new file mode 100644 index 0000000..e69de29 diff --git a/layout/rootfs/etc/s6-rc/source/init-eth0/down b/layout/rootfs/etc/s6-rc/source/init-eth0/down new file mode 100644 index 0000000..547ab86 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-eth0/down @@ -0,0 +1,2 @@ +foreground { ip link set dev eth0 down } +foreground { bcnm-waitif -d 2 eth0 } diff --git a/layout/rootfs/etc/s6-rc/source/init-eth0/type b/layout/rootfs/etc/s6-rc/source/init-eth0/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-eth0/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source/init-eth0/up b/layout/rootfs/etc/s6-rc/source/init-eth0/up new file mode 100644 index 0000000..987a4af --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-eth0/up @@ -0,0 +1,3 @@ +if { bcnm-waitif 1 eth0 } +if { ip addr add 10.0.2.1/24 dev eth0 } +ip link set dev eth0 up -- cgit v1.3.1