commit 36d7b2037f1c87397734a01fc88168a6948e9707 Author: ccx <root@dorje.wpr.cz> Date: Thu, 28 Jan 2021 12:25:42 +0100 initial commit Diffstat:
122 files changed, 214 insertions(+), 0 deletions(-)
diff --git a/brightness/type b/brightness/type @@ -0,0 +1 @@ +oneshot diff --git a/brightness/up b/brightness/up @@ -0,0 +1,3 @@ +foreground { redirfd -w 1 /sys/class/backlight/intel_backlight/brightness echo 800 } +if { chgrp users /sys/class/backlight/intel_backlight/brightness } +chmod g+w /sys/class/backlight/intel_backlight/brightness diff --git a/containers/dependencies b/containers/dependencies @@ -0,0 +1 @@ +ok-mount diff --git a/containers/type b/containers/type @@ -0,0 +1 @@ +oneshot diff --git a/containers/up b/containers/up @@ -0,0 +1,5 @@ +export TERM "linux" +if { + zsh -lc "quiet=1 confz site_containers" +} +s6-svscanctl -a /run/service diff --git a/dhcpcd/dependencies b/dhcpcd/dependencies @@ -0,0 +1 @@ +openrc diff --git a/dhcpcd/run b/dhcpcd/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +dhcpcd --nobackground diff --git a/dhcpcd/type b/dhcpcd/type @@ -0,0 +1 @@ +longrun diff --git a/gettys/contents b/gettys/contents @@ -0,0 +1,4 @@ +tty1 +tty3 +tty2 +tty4 diff --git a/gettys/type b/gettys/type @@ -0,0 +1 @@ +bundle diff --git a/kbd_mode-tty1/type b/kbd_mode-tty1/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty1/up b/kbd_mode-tty1/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty1 diff --git a/kbd_mode-tty10/type b/kbd_mode-tty10/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty10/up b/kbd_mode-tty10/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty10 diff --git a/kbd_mode-tty11/type b/kbd_mode-tty11/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty11/up b/kbd_mode-tty11/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty11 diff --git a/kbd_mode-tty12/type b/kbd_mode-tty12/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty12/up b/kbd_mode-tty12/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty12 diff --git a/kbd_mode-tty2/type b/kbd_mode-tty2/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty2/up b/kbd_mode-tty2/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty2 diff --git a/kbd_mode-tty3/type b/kbd_mode-tty3/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty3/up b/kbd_mode-tty3/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty3 diff --git a/kbd_mode-tty4/type b/kbd_mode-tty4/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty4/up b/kbd_mode-tty4/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty4 diff --git a/kbd_mode-tty5/type b/kbd_mode-tty5/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty5/up b/kbd_mode-tty5/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty5 diff --git a/kbd_mode-tty6/type b/kbd_mode-tty6/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty6/up b/kbd_mode-tty6/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty6 diff --git a/kbd_mode-tty7/type b/kbd_mode-tty7/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty7/up b/kbd_mode-tty7/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty7 diff --git a/kbd_mode-tty8/type b/kbd_mode-tty8/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty8/up b/kbd_mode-tty8/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty8 diff --git a/kbd_mode-tty9/type b/kbd_mode-tty9/type @@ -0,0 +1 @@ +oneshot diff --git a/kbd_mode-tty9/up b/kbd_mode-tty9/up @@ -0,0 +1 @@ +kbd_mode -u -C /dev/tty9 diff --git a/kbd_mode/contents b/kbd_mode/contents @@ -0,0 +1,8 @@ +kbd_mode-tty1 +kbd_mode-tty2 +kbd_mode-tty3 +kbd_mode-tty4 +kbd_mode-tty9 +kbd_mode-tty10 +kbd_mode-tty11 +kbd_mode-tty12 diff --git a/kbd_mode/type b/kbd_mode/type @@ -0,0 +1 @@ +bundle diff --git a/loadkeys/dependencies b/loadkeys/dependencies @@ -0,0 +1 @@ +kbd_mode diff --git a/loadkeys/type b/loadkeys/type @@ -0,0 +1 @@ +oneshot diff --git a/loadkeys/up b/loadkeys/up @@ -0,0 +1 @@ +loadkeys --unicode /root/keymap diff --git a/mount-dev-mqueue/dependencies b/mount-dev-mqueue/dependencies @@ -0,0 +1 @@ +mount-dev diff --git a/mount-dev-mqueue/down b/mount-dev-mqueue/down @@ -0,0 +1 @@ +s6-umount /dev/mqueue diff --git a/mount-dev-mqueue/type b/mount-dev-mqueue/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-dev-mqueue/up b/mount-dev-mqueue/up @@ -0,0 +1 @@ +sh -xc "mkdir -p /dev/mqueue || exit $?; mount -t mqueue mqueue /dev/mqueue -o remount,rw,nosuid,nodev,noexec || mount -t mqueue mqueue /dev/mqueue -o nosuid,nodev,noexec" diff --git a/mount-dev-pts/dependencies b/mount-dev-pts/dependencies @@ -0,0 +1 @@ +mount-dev diff --git a/mount-dev-pts/down b/mount-dev-pts/down @@ -0,0 +1 @@ +s6-umount /dev/pts diff --git a/mount-dev-pts/type b/mount-dev-pts/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-dev-pts/up b/mount-dev-pts/up @@ -0,0 +1 @@ +sh -xc "mkdir -p /dev/pts || exit $?; mount -wt devpts devpts /dev/pts -o remount,rw,relatime,mode=600,ptmxmode=000 || exec mount -wt devpts devpts /dev/pts -o rw,relatime,mode=600,ptmxmode=000" diff --git a/mount-dev-shm/dependencies b/mount-dev-shm/dependencies @@ -0,0 +1 @@ +mount-dev diff --git a/mount-dev-shm/down b/mount-dev-shm/down @@ -0,0 +1 @@ +s6-umount /dev/shm diff --git a/mount-dev-shm/type b/mount-dev-shm/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-dev-shm/up b/mount-dev-shm/up @@ -0,0 +1 @@ +sh -xc "mount -wt tmpfs shm /dev/shm -o remount,rw,nosuid,nodev,relatime || exec mount -wt tmpfs shm /dev/shm -o rw,nosuid,nodev,relatime" diff --git a/mount-dev/contents b/mount-dev/contents @@ -0,0 +1 @@ +mount-devtmpfs diff --git a/mount-dev/type b/mount-dev/type @@ -0,0 +1 @@ +bundle diff --git a/mount-devtmpfs/down b/mount-devtmpfs/down @@ -0,0 +1 @@ +s6-umount /dev+ \ No newline at end of file diff --git a/mount-devtmpfs/type b/mount-devtmpfs/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-devtmpfs/up b/mount-devtmpfs/up @@ -0,0 +1 @@ +sh -xc "mount -wt devtmpfs dev /dev -o remount,nosuid || exec mount -wt devtmpfs dev /dev -o nosuid" diff --git a/mount-proc/down b/mount-proc/down @@ -0,0 +1 @@ +s6-umount /proc diff --git a/mount-proc/type b/mount-proc/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-proc/up b/mount-proc/up @@ -0,0 +1 @@ +sh -xc "mount -wt proc proc /proc -o remount || mount -wt proc proc /proc" diff --git a/mount-sys/down b/mount-sys/down @@ -0,0 +1 @@ +s6-umount /sys diff --git a/mount-sys/type b/mount-sys/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-sys/up b/mount-sys/up @@ -0,0 +1 @@ +sh -xc "mount -wt sysfs sys /sys -o remount || exec mount -wt sysfs sys /sys" diff --git a/mount-tmp-X11/down b/mount-tmp-X11/down @@ -0,0 +1 @@ +umount /tmp/.X11-unix diff --git a/mount-tmp-X11/type b/mount-tmp-X11/type @@ -0,0 +1 @@ +oneshot diff --git a/mount-tmp-X11/up b/mount-tmp-X11/up @@ -0,0 +1,4 @@ +if { mkdir -p /tmp/.X11-unix /run/X11 } +if { chmod 771 /run/X11 } +if { chown root:xorg /run/X11 } +mount --bind /run/X11 /tmp/.X11-unix diff --git a/net-all/contents b/net-all/contents @@ -0,0 +1,3 @@ +wpa_supplicant +dhcpcd +unbound diff --git a/net-all/type b/net-all/type @@ -0,0 +1 @@ +bundle diff --git a/ok-all-but-tty/contents b/ok-all-but-tty/contents @@ -0,0 +1,9 @@ +mount-tmp-X11 +brightness +openrc +svscan-ccx +syncthing +net-all +setfont +loadkeys +containers diff --git a/ok-all-but-tty/type b/ok-all-but-tty/type @@ -0,0 +1 @@ +bundle diff --git a/ok-all/contents b/ok-all/contents @@ -0,0 +1,2 @@ +ok-all-but-tty +gettys diff --git a/ok-all/type b/ok-all/type @@ -0,0 +1 @@ +bundle diff --git a/ok-mount/contents b/ok-mount/contents @@ -0,0 +1,2 @@ +ok-sysinit +openrc diff --git a/ok-mount/type b/ok-mount/type @@ -0,0 +1 @@ +bundle diff --git a/ok-sysinit/contents b/ok-sysinit/contents @@ -0,0 +1,6 @@ +mount-dev +mount-dev-mqueue +mount-dev-pts +mount-dev-shm +mount-proc +mount-sys diff --git a/ok-sysinit/type b/ok-sysinit/type @@ -0,0 +1 @@ +bundle diff --git a/openrc/dependencies b/openrc/dependencies @@ -0,0 +1 @@ +ok-sysinit diff --git a/openrc/down b/openrc/down @@ -0,0 +1,2 @@ +export TERM "linux" +/sbin/openrc shutdown diff --git a/openrc/type b/openrc/type @@ -0,0 +1 @@ +oneshot diff --git a/openrc/up b/openrc/up @@ -0,0 +1,3 @@ +export TERM "linux" +foreground { /sbin/openrc boot } +/sbin/openrc default diff --git a/setfont-tty1/type b/setfont-tty1/type @@ -0,0 +1 @@ +oneshot diff --git a/setfont-tty1/up b/setfont-tty1/up @@ -0,0 +1 @@ +redirfd -r 0 /dev/tty1 setfont ter-v14n diff --git a/setfont-tty2/type b/setfont-tty2/type @@ -0,0 +1 @@ +oneshot diff --git a/setfont-tty2/up b/setfont-tty2/up @@ -0,0 +1 @@ +redirfd -r 0 /dev/tty2 setfont ter-v14n diff --git a/setfont-tty3/type b/setfont-tty3/type @@ -0,0 +1 @@ +oneshot diff --git a/setfont-tty3/up b/setfont-tty3/up @@ -0,0 +1 @@ +redirfd -r 0 /dev/tty3 setfont ter-v14n diff --git a/setfont-tty4/type b/setfont-tty4/type @@ -0,0 +1 @@ +oneshot diff --git a/setfont-tty4/up b/setfont-tty4/up @@ -0,0 +1 @@ +redirfd -r 0 /dev/tty4 setfont ter-v14n diff --git a/setfont/contents b/setfont/contents @@ -0,0 +1,4 @@ +setfont-tty1 +setfont-tty2 +setfont-tty3 +setfont-tty4 diff --git a/setfont/type b/setfont/type @@ -0,0 +1 @@ +bundle diff --git a/svscan-ccx-log/consumer-for b/svscan-ccx-log/consumer-for @@ -0,0 +1 @@ +svscan-ccx diff --git a/svscan-ccx-log/run b/svscan-ccx-log/run @@ -0,0 +1,6 @@ +#!/command/execlineb -P +if { mkdir -p /run/user/ccx.logs } +if { chown ccx: /run/user/ccx.logs } +if { chmod 700 /run/user/ccx.logs } +s6-setuidgid ccx +s6-log -- t /run/user/ccx.logs diff --git a/svscan-ccx-log/type b/svscan-ccx-log/type @@ -0,0 +1 @@ +longrun diff --git a/svscan-ccx/dependencies b/svscan-ccx/dependencies diff --git a/svscan-ccx/notification-fd b/svscan-ccx/notification-fd @@ -0,0 +1 @@ +3+ \ No newline at end of file diff --git a/svscan-ccx/producer-for b/svscan-ccx/producer-for @@ -0,0 +1 @@ +svscan-ccx-log diff --git a/svscan-ccx/run b/svscan-ccx/run @@ -0,0 +1,7 @@ +#!/command/execlineb -P +if { mkdir -p /run/user/ccx } +if { chown ccx: /run/user/ccx } +if { chmod 700 /run/user/ccx } +s6-setuidgid ccx +if { mkdir -p /run/user/ccx/service } +s6-svscan -d 3 /run/user/ccx/service diff --git a/svscan-ccx/type b/svscan-ccx/type @@ -0,0 +1 @@ +longrun diff --git a/syncthing/dependencies b/syncthing/dependencies @@ -0,0 +1 @@ +ok-mount diff --git a/syncthing/run b/syncthing/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +/usr/bin/env HOME=/var/lib/syncthing +s6-setuidgid syncthing +syncthing -logflags 0 diff --git a/syncthing/type b/syncthing/type @@ -0,0 +1 @@ +longrun diff --git a/tty1/finish b/tty1/finish @@ -0,0 +1,5 @@ +#!/command/execlineb -P +redirfd -w 1 /dev/tty1 +fdmove -c 2 1 +foreground { s6-echo "\nwaiting for session cleanup" } +flock /run/ttylock/tty1 true diff --git a/tty1/run b/tty1/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +/usr/bin/env LOGIN_TTY=/dev/tty1 /sbin/getty -l /usr/local/bin/login-keepenv 38400 tty1 linux diff --git a/tty1/type b/tty1/type @@ -0,0 +1 @@ +longrun diff --git a/tty2/finish b/tty2/finish @@ -0,0 +1,5 @@ +#!/command/execlineb -P +redirfd -w 1 /dev/tty2 +fdmove -c 2 1 +foreground { s6-echo "\nwaiting for session cleanup" } +flock /run/ttylock/tty2 true diff --git a/tty2/run b/tty2/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +/usr/bin/env LOGIN_TTY=/dev/tty2 /sbin/getty -l /usr/local/bin/login-keepenv 38400 tty2 linux diff --git a/tty2/type b/tty2/type @@ -0,0 +1 @@ +longrun diff --git a/tty3/finish b/tty3/finish @@ -0,0 +1,5 @@ +#!/command/execlineb -P +redirfd -w 1 /dev/tty3 +fdmove -c 2 1 +foreground { s6-echo "\nwaiting for session cleanup" } +flock /run/ttylock/tty3 true diff --git a/tty3/run b/tty3/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +/usr/bin/env LOGIN_TTY=/dev/tty3 /sbin/getty -l /usr/local/bin/login-keepenv 38400 tty3 linux diff --git a/tty3/type b/tty3/type @@ -0,0 +1 @@ +longrun diff --git a/tty4/finish b/tty4/finish @@ -0,0 +1,5 @@ +#!/command/execlineb -P +redirfd -w 1 /dev/tty4 +fdmove -c 2 1 +foreground { s6-echo "\nwaiting for session cleanup" } +flock /run/ttylock/tty4 true diff --git a/tty4/run b/tty4/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +/usr/bin/env LOGIN_TTY=/dev/tty4 /sbin/getty -l /usr/local/bin/login-keepenv 38400 tty4 linux diff --git a/tty4/type b/tty4/type @@ -0,0 +1 @@ +longrun diff --git a/udev/dependencies b/udev/dependencies @@ -0,0 +1,3 @@ +mount-sys +mount-proc +mount-dev diff --git a/udev/notification-fd b/udev/notification-fd @@ -0,0 +1 @@ +3 diff --git a/udev/run b/udev/run @@ -0,0 +1,9 @@ +#!/command/execlineb -P +background { + sh -xc "until /sbin/udevadm settle --timeout=120; do sleep 0.5; done; echo >&3 settled" + #foreground { loopwhilex -x 0 if -nt { /sbin/udevadm settle --timeout=120 } foreground { sleep 0.1 } exit 1 } + #fdmove -c 3 1 + #echo +} +fdclose 3 +/sbin/udevd diff --git a/udev/type b/udev/type @@ -0,0 +1 @@ +longrun diff --git a/unbound/dependencies b/unbound/dependencies @@ -0,0 +1 @@ +openrc diff --git a/unbound/run b/unbound/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +unbound -d diff --git a/unbound/type b/unbound/type @@ -0,0 +1 @@ +longrun diff --git a/wpa_supplicant/dependencies b/wpa_supplicant/dependencies @@ -0,0 +1 @@ +openrc diff --git a/wpa_supplicant/run b/wpa_supplicant/run @@ -0,0 +1,4 @@ +#!/command/execlineb -P +/sbin/wpa_supplicant +-iwlan0 +-c/etc/wpa_supplicant/wpa_supplicant.conf diff --git a/wpa_supplicant/type b/wpa_supplicant/type @@ -0,0 +1 @@ +longrun