feat(seedrng): use it
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

This commit is contained in:
catvayor 2024-09-26 17:38:59 +02:00
parent 20ec5ee5e9
commit 5b0df5aee2
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
3 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
inherit (pkgs) inherit (pkgs)
execline execline
@ -31,6 +31,8 @@ let
mkdir $out mkdir $out
cp -r $src $out/scripts cp -r $src $out/scripts
chmod -R +w $out chmod -R +w $out
substituteInPlace $out/scripts/{rc.init,rc.shutdown} \
--replace-warn 'pkgs.seedrng' "${lib.getExe' pkgs.seedrng "seedrng"}"
''; '';
}; };
service = dir { service = dir {

View file

@ -32,6 +32,8 @@ else
mkdir -m 0751 -p /run/services/state mkdir -m 0751 -p /run/services/state
fi fi
pkgs.seedrng
### If your services are managed by s6-rc: ### If your services are managed by s6-rc:
### (replace /run/service with your scandir) ### (replace /run/service with your scandir)
s6-rc-init -d -c /etc/s6-rc/compiled /run/service s6-rc-init -d -c /etc/s6-rc/compiled /run/service

View file

@ -4,6 +4,7 @@
### Things to do before hardware halt/reboot/poweroff. ### Things to do before hardware halt/reboot/poweroff.
### Ideally, it should be a single call to the service manager, ### Ideally, it should be a single call to the service manager,
### telling it to bring all the services down. ### telling it to bring all the services down.
pkgs.seedrng
### If your s6-linux-init-maker invocation was made with the -1 ### If your s6-linux-init-maker invocation was made with the -1
### option, messages from rc.shutdown will appear on /dev/console ### option, messages from rc.shutdown will appear on /dev/console