summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/rc.shutdown
blob: ca63d143b00499a0e78dd6769fde5f181038d842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/command/execlineb -P

# Write a message to /var/log/syslogd

foreground
{
  s6-ipcclient -l0 /dev/log
  fdmove 1 7
  s6-echo "/etc/rc.shutdown requested"
}


# Shut down all services

s6-rc -da change