aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/init
blob: 619561d3332e78349263c09c4234d4b847ab16c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/command/execlineb -P

/command/export PATH /command:/bin
/command/cd /
s6-setsid -qb --
umask 022

s6-envdir -I -- /etc/s6-linux-init/current/env
redirfd -r 0 /dev/null
redirfd -wnb 1 /run/service/s6-svscan-log/fifo
background
{
  s6-setsid --
  redirfd -w 1 /run/service/s6-svscan-log/fifo
  fdmove -c 2 1
  /etc/s6-linux-init/current/rc.init
}
unexport !
cd /run/service
fdmove -c 2 1
s6-svscan -st0