summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-10-08 12:43:57 +0200
committerEugen Wissner <belka@caraus.de>2025-10-08 12:43:57 +0200
commit9bdd13d12cc739432efa3f70a04952d902880fe4 (patch)
tree03badf18fed1ad8cba439d9425b69ce3cdbb2809
parent84c64f3e65ee57c5f23082930c35b28dfca696b6 (diff)
downloads6-9bdd13d12cc739432efa3f70a04952d902880fe4.tar.gz
Add dhclient service
-rw-r--r--busybox/default/contents2
-rw-r--r--busybox/dhclient-log/consumer-for1
-rw-r--r--busybox/dhclient-log/dependencies1
-rw-r--r--busybox/dhclient-log/notification-fd1
-rw-r--r--busybox/dhclient-log/pipeline-name1
-rw-r--r--busybox/dhclient-log/run10
-rw-r--r--busybox/dhclient-log/type1
-rw-r--r--busybox/dhclient-srv/dependencies1
-rw-r--r--busybox/dhclient-srv/producer-for1
-rw-r--r--busybox/dhclient-srv/run4
-rw-r--r--busybox/dhclient-srv/type1
11 files changed, 23 insertions, 1 deletions
diff --git a/busybox/default/contents b/busybox/default/contents
index 201fe5f..86c7aca 100644
--- a/busybox/default/contents
+++ b/busybox/default/contents
@@ -2,4 +2,4 @@ devpts
tmpfs-shm
local-fs
std-stream
-hostname
+dhclient
diff --git a/busybox/dhclient-log/consumer-for b/busybox/dhclient-log/consumer-for
new file mode 100644
index 0000000..f3d2703
--- /dev/null
+++ b/busybox/dhclient-log/consumer-for
@@ -0,0 +1 @@
+dhclient-srv
diff --git a/busybox/dhclient-log/dependencies b/busybox/dhclient-log/dependencies
new file mode 100644
index 0000000..ce53c6b
--- /dev/null
+++ b/busybox/dhclient-log/dependencies
@@ -0,0 +1 @@
+remount-root
diff --git a/busybox/dhclient-log/notification-fd b/busybox/dhclient-log/notification-fd
new file mode 100644
index 0000000..00750ed
--- /dev/null
+++ b/busybox/dhclient-log/notification-fd
@@ -0,0 +1 @@
+3
diff --git a/busybox/dhclient-log/pipeline-name b/busybox/dhclient-log/pipeline-name
new file mode 100644
index 0000000..5d468f9
--- /dev/null
+++ b/busybox/dhclient-log/pipeline-name
@@ -0,0 +1 @@
+dhclient
diff --git a/busybox/dhclient-log/run b/busybox/dhclient-log/run
new file mode 100644
index 0000000..ddf5e40
--- /dev/null
+++ b/busybox/dhclient-log/run
@@ -0,0 +1,10 @@
+#!/bin/execlineb -P
+
+s6-envuidgid -B root:root
+multisubstitute {
+ importas -u UID UID
+ importas -u GID GID
+}
+if { install -dm 750 -o $UID -g $GID /var/log/dhclient }
+s6-setuidgid ${UID}:${GID}
+exec -c s6-log -d3 -- n4 s500000 T /var/log/dhclient
diff --git a/busybox/dhclient-log/type b/busybox/dhclient-log/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/busybox/dhclient-log/type
@@ -0,0 +1 @@
+longrun
diff --git a/busybox/dhclient-srv/dependencies b/busybox/dhclient-srv/dependencies
new file mode 100644
index 0000000..ecd88ae
--- /dev/null
+++ b/busybox/dhclient-srv/dependencies
@@ -0,0 +1 @@
+hostname
diff --git a/busybox/dhclient-srv/producer-for b/busybox/dhclient-srv/producer-for
new file mode 100644
index 0000000..a31a7b2
--- /dev/null
+++ b/busybox/dhclient-srv/producer-for
@@ -0,0 +1 @@
+dhclient-log
diff --git a/busybox/dhclient-srv/run b/busybox/dhclient-srv/run
new file mode 100644
index 0000000..69e0f42
--- /dev/null
+++ b/busybox/dhclient-srv/run
@@ -0,0 +1,4 @@
+#!/bin/execlineb -P
+
+fdmove -c 2 1
+dhclient -d
diff --git a/busybox/dhclient-srv/type b/busybox/dhclient-srv/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/busybox/dhclient-srv/type
@@ -0,0 +1 @@
+longrun