run (526B)
1 #!/command/execlineb -P 2 getpid SERVICE_PID 3 foreground { 4 importas -i SERVICE_PID SERVICE_PID 5 if { test -d /run/cgroup2 } 6 if { mkdir -p /run/cgroup2/s6-rc/udev } 7 redirfd -w 1 /run/cgroup2/s6-rc/udev/cgroup.procs 8 printf "%s" ${SERVICE_PID} 9 } 10 unexport SERVICE_PID 11 12 background { 13 sh -xc "until /sbin/udevadm settle --timeout=120; do sleep 0.5; done; echo >&3 settled" 14 #foreground { loopwhilex -x 0 if -nt { /sbin/udevadm settle --timeout=120 } foreground { sleep 0.1 } exit 1 } 15 #fdmove -c 3 1 16 #echo 17 } 18 fdclose 3 19 /sbin/udevd