Add dhclient service

This commit is contained in:
2025-10-08 12:43:57 +02:00
parent 84c64f3e65
commit 9bdd13d12c
11 changed files with 23 additions and 1 deletions

View File

@@ -2,4 +2,4 @@ devpts
tmpfs-shm tmpfs-shm
local-fs local-fs
std-stream std-stream
hostname dhclient

View File

@@ -0,0 +1 @@
dhclient-srv

View File

@@ -0,0 +1 @@
remount-root

View File

@@ -0,0 +1 @@
3

View File

@@ -0,0 +1 @@
dhclient

10
busybox/dhclient-log/run Normal file
View File

@@ -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

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
hostname

View File

@@ -0,0 +1 @@
dhclient-log

4
busybox/dhclient-srv/run Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/execlineb -P
fdmove -c 2 1
dhclient -d

View File

@@ -0,0 +1 @@
longrun