summaryrefslogtreecommitdiff
path: root/busybox/dhclient-log/run
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/dhclient-log/run')
-rw-r--r--busybox/dhclient-log/run10
1 files changed, 10 insertions, 0 deletions
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