aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/s6-rc/source-base/init-eth0
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-30 14:44:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-30 14:44:04 +0000
commit61c8a693f00ce1c5141ec5f8339298f796f29707 (patch)
tree99316c6ebdca7a7b0f3448547aa029172f0979ab /layout/rootfs/etc/s6-rc/source-base/init-eth0
parent984b96ebcb50565898052a430d3422983c2d7df5 (diff)
downloadlh-bootstrap-61c8a693f00ce1c5141ec5f8339298f796f29707.tar.xz
Add network and syslogd
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/init-eth0')
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies2
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/init-eth0/down2
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/init-eth0/type1
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/init-eth0/up2
4 files changed, 7 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies
new file mode 100644
index 0000000..5e57eb3
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies
@@ -0,0 +1,2 @@
+init-sysctl
+mdevd
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-eth0/down b/layout/rootfs/etc/s6-rc/source-base/init-eth0/down
new file mode 100644
index 0000000..5404b98
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/down
@@ -0,0 +1,2 @@
+foreground { ip link set dev eth0 down }
+exit 0
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-eth0/type b/layout/rootfs/etc/s6-rc/source-base/init-eth0/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/type
@@ -0,0 +1 @@
+oneshot
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-eth0/up b/layout/rootfs/etc/s6-rc/source-base/init-eth0/up
new file mode 100644
index 0000000..a89a990
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/up
@@ -0,0 +1,2 @@
+if { ip addr add 10.0.0.1/24 dev eth0 }
+ip link set dev eth0 up