liminix/modules/s6/scripts/rc.shutdown
catvayor 5b0df5aee2
All checks were successful
build liminix / build_zyxel-nwa50ax_mips (pull_request) Successful in 18s
build liminix / test_hostapd (pull_request) Successful in 20s
build liminix / build_vm_qemu_mips (pull_request) Successful in 21s
feat(seedrng): use it
2024-09-30 13:19:04 +02:00

20 lines
758 B
Bash
Executable file

#!/bin/sh
### Things to do before hardware halt/reboot/poweroff.
### Ideally, it should be a single call to the service manager,
### telling it to bring all the services down.
pkgs.seedrng
### If your s6-linux-init-maker invocation was made with the -1
### option, messages from rc.shutdown will appear on /dev/console
### as well as be logged by the catch-all logger.
### If your s6-linux-init-maker invocation did NOT include the -1
### option, messages from rc.shutdown will only be logged by the
### catch-all logger and will NOT appear on /dev/console. In order
### to print them to /dev/console instead, you may want to
### uncomment the following line:
exec >/dev/console 2>&1
### If your services are managed by s6-rc:
exec s6-rc -v2 -bDa change