diff options
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base')
192 files changed, 469 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/00/down b/layout/rootfs/etc/s6-rc/source-base/00/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/00/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/00/type b/layout/rootfs/etc/s6-rc/source-base/00/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/00/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/00/up b/layout/rootfs/etc/s6-rc/source-base/00/up new file mode 100644 index 0000000..276df76 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/00/up @@ -0,0 +1,2 @@ +if { s6-echo "init-stage2 starting." } +s6-hostname %%HOSTNAME%% diff --git a/layout/rootfs/etc/s6-rc/source-base/activate-eth0/contents b/layout/rootfs/etc/s6-rc/source-base/activate-eth0/contents new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/activate-eth0/contents @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/activate-eth0/type b/layout/rootfs/etc/s6-rc/source-base/activate-eth0/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/activate-eth0/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/devd/dependencies b/layout/rootfs/etc/s6-rc/source-base/devd/dependencies new file mode 100644 index 0000000..c1ee812 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/devd/dependencies @@ -0,0 +1 @@ +init-dev diff --git a/layout/rootfs/etc/s6-rc/source-base/devd/run b/layout/rootfs/etc/s6-rc/source-base/devd/run new file mode 100755 index 0000000..f9bda39 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/devd/run @@ -0,0 +1,5 @@ +#!/command/execlineb -P +fdmove -c 2 1 +exec -c +s6-devd +/bin/mdev diff --git a/layout/rootfs/etc/s6-rc/source-base/devd/type b/layout/rootfs/etc/s6-rc/source-base/devd/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/devd/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/consumer-for new file mode 100644 index 0000000..e4cac8e --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/consumer-for @@ -0,0 +1 @@ +dnscache diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache-log/run b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/run new file mode 100755 index 0000000..4280ed7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid dnslog +exec -c +s6-log t s1000000 n20 /var/log/dnscache diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache-log/type b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/dependencies b/layout/rootfs/etc/s6-rc/source-base/dnscache/dependencies new file mode 100644 index 0000000..6daf05b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/dependencies @@ -0,0 +1 @@ +init-lan diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/env/CACHESIZE b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/CACHESIZE new file mode 100644 index 0000000..6820bf1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/CACHESIZE @@ -0,0 +1 @@ +1048576 diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IP b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IP new file mode 100644 index 0000000..7b9ad53 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IP @@ -0,0 +1 @@ +127.0.0.1 diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IPSEND b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IPSEND new file mode 100644 index 0000000..d690dc0 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/IPSEND @@ -0,0 +1 @@ +0.0.0.0 diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/env/ROOT b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/ROOT new file mode 100644 index 0000000..1660d01 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/env/ROOT @@ -0,0 +1 @@ +/etc/dnscache/root diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/notification-fd b/layout/rootfs/etc/s6-rc/source-base/dnscache/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/dnscache/pipeline-name new file mode 100644 index 0000000..7627abf --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/pipeline-name @@ -0,0 +1 @@ +dnscache-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/producer-for b/layout/rootfs/etc/s6-rc/source-base/dnscache/producer-for new file mode 100644 index 0000000..68d4773 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/producer-for @@ -0,0 +1 @@ +dnscache-log diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/run b/layout/rootfs/etc/s6-rc/source-base/dnscache/run new file mode 100755 index 0000000..736b5e6 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/run @@ -0,0 +1,13 @@ +#!/command/execlineb -P +fdmove -c 2 1 +s6-envuidgid dnscache +s6-envdir env +s6-softlimit -m 4000000 +pipeline -d +{ + redirfd -r 0 /dev/urandom + s6-head -c 128 +} +unexport ! +fdmove 1 3 +dnscache diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/type b/layout/rootfs/etc/s6-rc/source-base/dnscache/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/consumer-for new file mode 100644 index 0000000..c9e44ab --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/consumer-for @@ -0,0 +1 @@ +fdholder diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-log/run b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/run new file mode 100755 index 0000000..b0c43d8 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid fdhlog +exec -c +s6-log t s1000000 n20 /var/log/fdholder diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-log/type b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/consumer-for new file mode 100644 index 0000000..dd0fc59 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/consumer-for @@ -0,0 +1 @@ +fdholder-tmp diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/run b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/run new file mode 100755 index 0000000..038491a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid fdhlog +exec -c +s6-log t s1000000 n20 /var/log/fdholder-tmp diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/type b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/allow b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/allow new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/allow diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_LIST b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_LIST new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_LIST @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/dependencies b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/notification-fd b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/pipeline-name new file mode 100644 index 0000000..9a7e4fd --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/pipeline-name @@ -0,0 +1 @@ +fdholder-tmp-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/producer-for b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/producer-for new file mode 100644 index 0000000..b1d1c5d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/producer-for @@ -0,0 +1 @@ +fdholder-tmp-log diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/run b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/run new file mode 100755 index 0000000..d6aa00a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/run @@ -0,0 +1,6 @@ +#!/command/execlineb -P + +fdmove -c 2 1 +s6-envuidgid fdh +fdmove 1 3 +s6-fdholder-daemon -v2 -1 -T 20000 -U -i data/rules -- s diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/type b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder-tmp/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/allow b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/allow new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/allow diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/dependencies b/layout/rootfs/etc/s6-rc/source-base/fdholder/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/notification-fd b/layout/rootfs/etc/s6-rc/source-base/fdholder/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/fdholder/pipeline-name new file mode 100644 index 0000000..44be5e2 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/pipeline-name @@ -0,0 +1 @@ +fdholder-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/producer-for b/layout/rootfs/etc/s6-rc/source-base/fdholder/producer-for new file mode 100644 index 0000000..11f1ac2 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/producer-for @@ -0,0 +1 @@ +fdholder-log diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/run b/layout/rootfs/etc/s6-rc/source-base/fdholder/run new file mode 100755 index 0000000..d6aa00a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/run @@ -0,0 +1,6 @@ +#!/command/execlineb -P + +fdmove -c 2 1 +s6-envuidgid fdh +fdmove 1 3 +s6-fdholder-daemon -v2 -1 -T 20000 -U -i data/rules -- s diff --git a/layout/rootfs/etc/s6-rc/source-base/fdholder/type b/layout/rootfs/etc/s6-rc/source-base/fdholder/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fdholder/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run new file mode 100755 index 0000000..df7669b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run @@ -0,0 +1,10 @@ +#!/command/execlineb -P +fdmove -c 2 1 +if +{ + forbacktickx -p -0 i { s6-ls -0 /run/service } + import -u i + s6-cleanfifodir /run/service/${i}/event +} +s6-setuidgid nobody +s6-sleep 86400 diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/init-clock/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-clock/dependencies new file mode 100644 index 0000000..7988b5d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-clock/dependencies @@ -0,0 +1,2 @@ +activate-eth0 +dnscache diff --git a/layout/rootfs/etc/s6-rc/source-base/init-clock/down b/layout/rootfs/etc/s6-rc/source-base/init-clock/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-clock/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-clock/type b/layout/rootfs/etc/s6-rc/source-base/init-clock/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-clock/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-clock/up b/layout/rootfs/etc/s6-rc/source-base/init-clock/up new file mode 100644 index 0000000..43e0c65 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-clock/up @@ -0,0 +1,71 @@ +#!/command/execlineb -P + +# Get the local country code as well as a few other codes +# for countries all around the world. + +pipeline +{ + s6-setuidgid nobody + foreground + { + s6-envdir /etc/s6-linux-init/env-stage2 + import -u COUNTRY_CODE + s6-echo ${COUNTRY_CODE} + } + forx CODE { uk de ru cn kr jp us ca br au il za } + import -u CODE + s6-echo ${CODE} +} + + +# Suppress duplicates (e.g. if the local country code is in the list). + +pipeline +{ + s6-setuidgid nobody + s6-sort -u +} + + +# Get the IP addresses for some NTP servers in those countries. +# Limit the DNS queries to 30 seconds: if the DNS is slower than +# that, chances are the server isn't good for us anyway. +# All the queries are parallelized, so it's fast. + +pipeline +{ + s6-setuidgid nobody + forstdin -p -d"\n" CODE + import -u CODE + forx -p I { 0 1 } + import -u I + redirfd -w 2 /dev/null + s6-dnsip4 -t 30000 -- ${I}.${CODE}.pool.ntp.org +} + + +# Ask for a NTP exchange with the servers we get. Accept anything. +# If the exchange can't be completed in 5 seconds, kill it. +# All the queries are parallelized. + +pipeline +{ + s6-setuidgid ntp + forstdin -p -d"\n" NTPSERVERIP + import -u NTPSERVERIP + redirfd -w 2 /dev/null + s6-sntpclock -f -T 5000 ${NTPSERVERIP} +} + + +# Take the first answer we get. + +pipeline +{ + s6-setuidgid nobody + s6-head -Sc 12 +} + +# Update the system clock. Accept anything. + +s6-clockadd -f diff --git a/layout/rootfs/etc/s6-rc/source-base/init-coldplug/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/dependencies new file mode 100644 index 0000000..0b3e805 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/dependencies @@ -0,0 +1 @@ +devd diff --git a/layout/rootfs/etc/s6-rc/source-base/init-coldplug/down b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-coldplug/type b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-coldplug/up b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/up new file mode 100644 index 0000000..fed6638 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-coldplug/up @@ -0,0 +1 @@ +mdev -s diff --git a/layout/rootfs/etc/s6-rc/source-base/init-dev/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-dev/dependencies new file mode 100644 index 0000000..eec2035 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-dev/dependencies @@ -0,0 +1 @@ +init-run diff --git a/layout/rootfs/etc/s6-rc/source-base/init-dev/down b/layout/rootfs/etc/s6-rc/source-base/init-dev/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-dev/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-dev/type b/layout/rootfs/etc/s6-rc/source-base/init-dev/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-dev/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-dev/up b/layout/rootfs/etc/s6-rc/source-base/init-dev/up new file mode 100644 index 0000000..75c622a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-dev/up @@ -0,0 +1,8 @@ +foreground { s6-ln -sf /proc/self/fd /dev } +foreground { s6-ln -sf /proc/kcore /dev/core } +foreground { s6-ln -sf loop0 /dev/loop } +foreground { s6-ln -sf /run/shm /dev } +foreground { s6-ln -sf fd/0 /dev/stdin } +foreground { s6-ln -sf fd/1 /dev/stdout } +foreground { s6-ln -sf fd/2 /dev/stderr } +exit 0 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..79607c6 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies @@ -0,0 +1,2 @@ +init-sysctl +mount-cgroups 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..fd3dae2 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/down @@ -0,0 +1 @@ +ip link set dev eth0 down 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..99b451e --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/up @@ -0,0 +1,2 @@ +foreground { modprobe %%NETMODULE%% } +ip link set dev eth0 up diff --git a/layout/rootfs/etc/s6-rc/source-base/init-fds/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-fds/dependencies new file mode 100644 index 0000000..c9e44ab --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-fds/dependencies @@ -0,0 +1 @@ +fdholder diff --git a/layout/rootfs/etc/s6-rc/source-base/init-fds/down b/layout/rootfs/etc/s6-rc/source-base/init-fds/down new file mode 100644 index 0000000..1f2c2c0 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-fds/down @@ -0,0 +1,2 @@ +foreground { s6-fdholder-delete /run/service/fdholder/s pipe:r:s6-svscan-log } +exit 0 diff --git a/layout/rootfs/etc/s6-rc/source-base/init-fds/type b/layout/rootfs/etc/s6-rc/source-base/init-fds/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-fds/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-fds/up b/layout/rootfs/etc/s6-rc/source-base/init-fds/up new file mode 100644 index 0000000..e290556 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-fds/up @@ -0,0 +1,2 @@ +redirfd -r 0 /run/service/s6-svscan-log/fifo +s6-fdholder-store /run/service/fdholder/s pipe:r:s6-svscan-log diff --git a/layout/rootfs/etc/s6-rc/source-base/init-lan/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-lan/dependencies new file mode 100644 index 0000000..79607c6 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-lan/dependencies @@ -0,0 +1,2 @@ +init-sysctl +mount-cgroups diff --git a/layout/rootfs/etc/s6-rc/source-base/init-lan/down b/layout/rootfs/etc/s6-rc/source-base/init-lan/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-lan/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-lan/type b/layout/rootfs/etc/s6-rc/source-base/init-lan/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-lan/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-lan/up b/layout/rootfs/etc/s6-rc/source-base/init-lan/up new file mode 100644 index 0000000..1e1e4d7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-lan/up @@ -0,0 +1,3 @@ +foreground { modprobe ipv6 } +if { ip addr add 127.0.0.1/8 dev lo } +ip link set dev lo up diff --git a/layout/rootfs/etc/s6-rc/source-base/init-run/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-run/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-run/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/init-run/down b/layout/rootfs/etc/s6-rc/source-base/init-run/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-run/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-run/type b/layout/rootfs/etc/s6-rc/source-base/init-run/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-run/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-run/up b/layout/rootfs/etc/s6-rc/source-base/init-run/up new file mode 100644 index 0000000..29199e0 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-run/up @@ -0,0 +1 @@ +s6-chmod 1777 /run/tmp diff --git a/layout/rootfs/etc/s6-rc/source-base/init-sysctl/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/init-sysctl/down b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-sysctl/type b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-sysctl/up b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/up new file mode 100644 index 0000000..9e846f8 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-sysctl/up @@ -0,0 +1,6 @@ +redirfd -r 0 /etc/sysctl.conf +forstdin -nCd"\n" -- LINE +importas -u LINE LINE +multidefine -C $LINE { CTL VALUE } +redirfd -w 1 /proc/sys/$CTL +s6-echo -- $VALUE diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/klogd-log/consumer-for new file mode 100644 index 0000000..fd64770 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd-log/consumer-for @@ -0,0 +1 @@ +klogd diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/klogd-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd-log/run b/layout/rootfs/etc/s6-rc/source-base/klogd-log/run new file mode 100755 index 0000000..90e474b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid kllog +exec -c +s6-log t s1000000 n20 /var/log/klogd diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd-log/type b/layout/rootfs/etc/s6-rc/source-base/klogd-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd/dependencies b/layout/rootfs/etc/s6-rc/source-base/klogd/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/klogd/pipeline-name new file mode 100644 index 0000000..cb7ca7b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd/pipeline-name @@ -0,0 +1 @@ +klogd-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd/producer-for b/layout/rootfs/etc/s6-rc/source-base/klogd/producer-for new file mode 100644 index 0000000..2f21a8f --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd/producer-for @@ -0,0 +1 @@ +klogd-log diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd/run b/layout/rootfs/etc/s6-rc/source-base/klogd/run new file mode 100755 index 0000000..95dc7e8 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd/run @@ -0,0 +1,6 @@ +#!/command/execlineb -P +fdmove -c 2 1 +redirfd -r 0 /proc/kmsg +# s6-setuidgid klog +exec -c +ucspilogd diff --git a/layout/rootfs/etc/s6-rc/source-base/klogd/type b/layout/rootfs/etc/s6-rc/source-base/klogd/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/klogd/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/dependencies b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/dependencies new file mode 100644 index 0000000..f4c707c --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/dependencies @@ -0,0 +1 @@ +init-sysctl diff --git a/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/down b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/down new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/down diff --git a/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/type b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/up b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/up new file mode 100644 index 0000000..892d25b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/load-essential-modules/up @@ -0,0 +1,2 @@ +if { modprobe atkbd } +modprobe mousedev diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/down b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/down new file mode 100644 index 0000000..60450a4 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/down @@ -0,0 +1 @@ +s6-umount /sys/fs/cgroup diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/type b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/up b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/up new file mode 100644 index 0000000..a2f1dd8 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-base/up @@ -0,0 +1,2 @@ +if { s6-mkdir -p -m 0755 /sys/fs/cgroup } +s6-mount -wt tmpfs cgroup /sys/fs/cgroup diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/dependencies new file mode 100644 index 0000000..b19d47d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/dependencies @@ -0,0 +1 @@ +mount-cgroups-base diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/down b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/down new file mode 100644 index 0000000..5bd0e30 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/down @@ -0,0 +1,4 @@ +elglob -v -0 CGROUPS /sys/fs/cgroup/* +forx -p i { ${CGROUPS} } +importas -u i i +s6-umount $i diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/type b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up new file mode 100644 index 0000000..94f7c28 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up @@ -0,0 +1,10 @@ +redirfd -r 0 /proc/cgroups +pipeline { s6-tail -n +2 } +pipeline { s6-cut -d"\t" -f1 } +pipeline { s6-grep -vF -- devices } +forstdin -d"\n" -- i +import -u i +if { s6-mkdir -p /sys/fs/cgroup/${i} } +foreground { s6-mount -t cgroup -o ${i} -- cgroup /sys/fs/cgroup/${i} } +importas -u ? ? +s6-test $? -le 1 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/contents b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/contents new file mode 100644 index 0000000..f72ff6d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/contents @@ -0,0 +1,2 @@ +mount-cgroups-base +mount-cgroups-sub diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/type b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-devpts/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/dependencies new file mode 100644 index 0000000..c1ee812 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/dependencies @@ -0,0 +1 @@ +init-dev diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-devpts/down b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/down new file mode 100644 index 0000000..f886363 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/down @@ -0,0 +1 @@ +s6-umount /dev/pts diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-devpts/type b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-devpts/up b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/up new file mode 100644 index 0000000..8c5da6d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-devpts/up @@ -0,0 +1,4 @@ +if { s6-mkdir -p -m 0755 -- /dev/pts } +foreground { s6-mount -wt devpts -o noexec,nosuid,gid=0,mode=0600 devpts /dev/pts } +importas ? ? +s6-test $? -le 1 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-disks/contents b/layout/rootfs/etc/s6-rc/source-base/mount-disks/contents new file mode 100644 index 0000000..0131ea6 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-disks/contents @@ -0,0 +1,5 @@ +mount-rwfs +mount-syncfs +mount-userfs +mount-stagingfs +mount-swap diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-disks/type b/layout/rootfs/etc/s6-rc/source-base/mount-disks/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-disks/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/dependencies new file mode 100644 index 0000000..bee63cb --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/dependencies @@ -0,0 +1 @@ +init-coldplug diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/down b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/down new file mode 100644 index 0000000..00b6eb1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/down @@ -0,0 +1 @@ +s6-umount /mnt/rwfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/type b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/up b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/up new file mode 100644 index 0000000..bb04b0e --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-rwfs/up @@ -0,0 +1 @@ +s6-mount -wt ext4 /dev/%%PARTITION%%3 /mnt/rwfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/dependencies new file mode 100644 index 0000000..bee63cb --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/dependencies @@ -0,0 +1 @@ +init-coldplug diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/down b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/down new file mode 100644 index 0000000..a89d6eb --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/down @@ -0,0 +1 @@ +s6-umount /mnt/stagingfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/type b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/up b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/up new file mode 100644 index 0000000..d335a16 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-stagingfs/up @@ -0,0 +1 @@ +s6-mount -wt ext4 /dev/%%PARTITION%%6 /mnt/stagingfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-swap/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-swap/dependencies new file mode 100644 index 0000000..bee63cb --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-swap/dependencies @@ -0,0 +1 @@ +init-coldplug diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-swap/down b/layout/rootfs/etc/s6-rc/source-base/mount-swap/down new file mode 100644 index 0000000..e21a30d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-swap/down @@ -0,0 +1 @@ +s6-swapoff /dev/%%PARTITION%%3 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-swap/type b/layout/rootfs/etc/s6-rc/source-base/mount-swap/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-swap/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-swap/up b/layout/rootfs/etc/s6-rc/source-base/mount-swap/up new file mode 100644 index 0000000..75fc818 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-swap/up @@ -0,0 +1 @@ +s6-swapon /dev/%%PARTITION%%2 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/dependencies new file mode 100644 index 0000000..4daddb7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/dependencies @@ -0,0 +1 @@ +00 diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/down b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/down new file mode 100644 index 0000000..8437c5c --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/down @@ -0,0 +1 @@ +# s6-umount /mnt/syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/type b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/up b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/up new file mode 100644 index 0000000..cebf60d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-syncfs/up @@ -0,0 +1 @@ +# s6-mount -wt tmpfs -o sync,nodev,noexec,nosuid tmpfs /mnt/syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-userfs/dependencies b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/dependencies new file mode 100644 index 0000000..bee63cb --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/dependencies @@ -0,0 +1 @@ +init-coldplug diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-userfs/down b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/down new file mode 100644 index 0000000..2583c7d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/down @@ -0,0 +1 @@ +s6-umount /mnt/userfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-userfs/type b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-userfs/up b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/up new file mode 100644 index 0000000..fcac0f0 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-userfs/up @@ -0,0 +1 @@ +s6-mount -wt ext4 /dev/%%PARTITION%%5 /mnt/userfs diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-virtual/contents b/layout/rootfs/etc/s6-rc/source-base/mount-virtual/contents new file mode 100644 index 0000000..c78c4a4 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-virtual/contents @@ -0,0 +1,2 @@ +mount-devpts +mount-cgroups diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-virtual/type b/layout/rootfs/etc/s6-rc/source-base/mount-virtual/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/mount-virtual/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/consumer-for new file mode 100644 index 0000000..a0f3ade --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/consumer-for @@ -0,0 +1 @@ +ntpclient diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/run b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/run new file mode 100755 index 0000000..8a70c74 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid ntplog +exec -c +s6-log t s1000000 n20 /var/log/ntpclient diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/type b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/dependencies b/layout/rootfs/etc/s6-rc/source-base/ntpclient/dependencies new file mode 100644 index 0000000..a328ed2 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/dependencies @@ -0,0 +1,3 @@ +activate-eth0 +dnscache +init-clock diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/notification-fd b/layout/rootfs/etc/s6-rc/source-base/ntpclient/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/ntpclient/pipeline-name new file mode 100644 index 0000000..f9615f1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/pipeline-name @@ -0,0 +1 @@ +ntpclient-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/producer-for b/layout/rootfs/etc/s6-rc/source-base/ntpclient/producer-for new file mode 100644 index 0000000..c51cd0b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/producer-for @@ -0,0 +1 @@ +ntpclient-log diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/run b/layout/rootfs/etc/s6-rc/source-base/ntpclient/run new file mode 100755 index 0000000..1c1a820 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/run @@ -0,0 +1,58 @@ +#!/command/execlineb -P + +fdmove -c 2 1 + + +# Get the IP addresses for some NTP servers in our country. +# Limit the DNS queries to 30 seconds: if the DNS is slower than +# that, chances are the server isn't good for us anyway. +# All the queries are parallelized, so it's fast. + +pipeline +{ + s6-setuidgid nobody + s6-envdir /etc/s6-linux-init/env-stage2 + import -u COUNTRY_CODE + forx -p I { 0 1 } + import -u I + s6-dnsip4 -t 30000 -- ${I}.${COUNTRY_CODE}.pool.ntp.org +} +importas -u p1 ! + + +# Ask for a NTP exchange with the servers we get. +# If the exchange can't be completed in 5 seconds, kill it. +# All the queries are parallelized. + +pipeline +{ + s6-setuidgid ntp + forstdin -p -d"\n" NTPSERVERIP + import -u NTPSERVERIP + s6-sntpclock -T 5000 ${NTPSERVERIP} +} +importas -u p2 ! + + +# Take the first answer we get + +pipeline +{ + s6-setuidgid nobody + s6-head -Sc 12 +} +importas -u p3 ! + + +# Update the system clock. Accept 10 minutes of discrepancy. + +if { s6-clockadd -e 600000 } + + +# Success. Send a readiness notification, reap zombies, +# and sleep for 4 hours. + +s6-setuidgid nobody +if { fdmove 1 3 s6-echo } +wait { ${p1} ${p2} ${p3} } +s6-sleep 14400 diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/type b/layout/rootfs/etc/s6-rc/source-base/ntpclient/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-all/contents b/layout/rootfs/etc/s6-rc/source-base/ok-all/contents new file mode 100644 index 0000000..df4c9cd --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-all/contents @@ -0,0 +1,3 @@ +ok-local +ok-lan +ntpclient-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-all/type b/layout/rootfs/etc/s6-rc/source-base/ok-all/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-all/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-lan/contents b/layout/rootfs/etc/s6-rc/source-base/ok-lan/contents new file mode 100644 index 0000000..6e6b405 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-lan/contents @@ -0,0 +1,3 @@ +dnscache-pipeline +sshd-4-pipeline +activate-eth0 diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-lan/type b/layout/rootfs/etc/s6-rc/source-base/ok-lan/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-lan/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-local/contents b/layout/rootfs/etc/s6-rc/source-base/ok-local/contents new file mode 100644 index 0000000..bcad911 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-local/contents @@ -0,0 +1,10 @@ +devd +syslogd-pipeline +klogd-pipeline +fdholder-pipeline +mount-disks +mount-virtual +init-coldplug +init-sysctl +init-fds +fifodir-cleanup diff --git a/layout/rootfs/etc/s6-rc/source-base/ok-local/type b/layout/rootfs/etc/s6-rc/source-base/ok-local/type new file mode 100644 index 0000000..757b422 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/ok-local/type @@ -0,0 +1 @@ +bundle diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/consumer-for new file mode 100644 index 0000000..7d1730e --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/consumer-for @@ -0,0 +1 @@ +sshd-4 diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/run b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/run new file mode 100755 index 0000000..e40c2af --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid sshlog +exec -c +s6-log t s1000000 n20 /var/log/sshd-4 diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/type b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/data/rules/ip4/0.0.0.0_0/allow b/layout/rootfs/etc/s6-rc/source-base/sshd-4/data/rules/ip4/0.0.0.0_0/allow new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/data/rules/ip4/0.0.0.0_0/allow diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/dependencies b/layout/rootfs/etc/s6-rc/source-base/sshd-4/dependencies new file mode 100644 index 0000000..6daf05b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/dependencies @@ -0,0 +1 @@ +init-lan diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/notification-fd b/layout/rootfs/etc/s6-rc/source-base/sshd-4/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/sshd-4/pipeline-name new file mode 100644 index 0000000..d46bed2 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/pipeline-name @@ -0,0 +1 @@ +sshd-4-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/producer-for b/layout/rootfs/etc/s6-rc/source-base/sshd-4/producer-for new file mode 100644 index 0000000..f103f82 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/producer-for @@ -0,0 +1 @@ +sshd-4-log diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/run b/layout/rootfs/etc/s6-rc/source-base/sshd-4/run new file mode 100755 index 0000000..6d0c503 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/run @@ -0,0 +1,6 @@ +#!/command/execlineb -P +fdmove -c 2 1 +fdmove 1 3 +s6-tcpserver4 -v 2 -1 -- 0.0.0.0 22 +s6-tcpserver-access -v 2 -DRHl0 -t 5000 -i data/rules -- +dropbear -i -K 60 diff --git a/layout/rootfs/etc/s6-rc/source-base/sshd-4/type b/layout/rootfs/etc/s6-rc/source-base/sshd-4/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/sshd-4/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/static-eth0/dependencies b/layout/rootfs/etc/s6-rc/source-base/static-eth0/dependencies new file mode 100644 index 0000000..61c05ca --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/static-eth0/dependencies @@ -0,0 +1 @@ +init-eth0 diff --git a/layout/rootfs/etc/s6-rc/source-base/static-eth0/down b/layout/rootfs/etc/s6-rc/source-base/static-eth0/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/static-eth0/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/static-eth0/type b/layout/rootfs/etc/s6-rc/source-base/static-eth0/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/static-eth0/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/static-eth0/up b/layout/rootfs/etc/s6-rc/source-base/static-eth0/up new file mode 100644 index 0000000..2fb37e8 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/static-eth0/up @@ -0,0 +1,9 @@ +s6-envdir /etc/s6-linux-init/env-stage2 +multisubstitute +{ + import -i ETH0_IP4 + import DEFAULT_ROUTER_IP4 +} +if { ip addr add ${ETH0_IP4}/24 dev eth0 } +foreground { ip route del default } +route add default gw ${DEFAULT_ROUTER_IP4} diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/consumer-for new file mode 100644 index 0000000..96c5cc7 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/consumer-for @@ -0,0 +1 @@ +syslogd diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd-log/run b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/run new file mode 100755 index 0000000..b04f309 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid sysllog +exec -c +s6-log t s1000000 n20 /var/log/syslogd diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd-log/type b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/dependencies b/layout/rootfs/etc/s6-rc/source-base/syslogd/dependencies new file mode 100644 index 0000000..c1ee812 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/dependencies @@ -0,0 +1 @@ +init-dev diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/notification-fd b/layout/rootfs/etc/s6-rc/source-base/syslogd/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/syslogd/pipeline-name new file mode 100644 index 0000000..c8a925a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/pipeline-name @@ -0,0 +1 @@ +syslogd-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/producer-for b/layout/rootfs/etc/s6-rc/source-base/syslogd/producer-for new file mode 100644 index 0000000..75d14f5 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/producer-for @@ -0,0 +1 @@ +syslogd-log diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/run b/layout/rootfs/etc/s6-rc/source-base/syslogd/run new file mode 100755 index 0000000..e3aa36a --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/run @@ -0,0 +1,8 @@ +#!/command/execlineb -P +fdmove -c 2 1 +exec -c +s6-envuidgid syslog +fdmove 1 3 +s6-ipcserver -U -1 -- /dev/log +fdmove -c 1 2 +ucspilogd IPCREMOTEEUID IPCREMOTEEGID diff --git a/layout/rootfs/etc/s6-rc/source-base/syslogd/type b/layout/rootfs/etc/s6-rc/source-base/syslogd/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/syslogd/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/consumer-for b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/consumer-for new file mode 100644 index 0000000..5faea8d --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/consumer-for @@ -0,0 +1 @@ +udhcpc-eth0 diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/dependencies b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/dependencies new file mode 100644 index 0000000..24f7403 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/dependencies @@ -0,0 +1,2 @@ +mount-rwfs +mount-syncfs diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/run b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/run new file mode 100644 index 0000000..51000a4 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +s6-setuidgid dhcpclog +exec -c +s6-log t s1000000 n20 /var/log/udhcpc-eth0 diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/type b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0-log/type @@ -0,0 +1 @@ +longrun diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/dependencies b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/dependencies new file mode 100644 index 0000000..61c05ca --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/dependencies @@ -0,0 +1 @@ +init-eth0 diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/env/.empty b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/env/.empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/env/.empty diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/notification-fd b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/notification-fd @@ -0,0 +1 @@ +3 diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/pipeline-name b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/pipeline-name new file mode 100644 index 0000000..4ab35cc --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/pipeline-name @@ -0,0 +1 @@ +udhcpc-eth0-pipeline diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/producer-for b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/producer-for new file mode 100644 index 0000000..a880648 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/producer-for @@ -0,0 +1 @@ +udhcpc-eth0-log diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/run b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/run new file mode 100644 index 0000000..6e53da6 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/run @@ -0,0 +1,5 @@ +#!/command/execlineb -P +fdmove -c 2 1 +s6-envdir -nI env +importas -usd" " IPARG IPARG +udhcpc -f -C -i eth0 -x lease:86400 $IPARG -s /etc/udhcpc/udhcpc-script diff --git a/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/type b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/udhcpc-eth0/type @@ -0,0 +1 @@ +longrun |