Bug 16057

Summary: Init: Distinction between reboot and shutdown not possible
Product: Busybox Reporter: Franz Fischer <Franz.Fd.Fischer>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Franz Fischer 2024-05-02 05:12:24 UTC
I use the Argonone v2 housing on the Raspberry Pi 4 with Alpine Linux. It is necessary to send a signal to the housing before the shutdown is completed so that it switches off the power supply with a time delay. This signal must not be sent during a reboot. With Gentoo Linux, in the event of a reboot, the environment variable RC_Reboot is set to yes. Could this also be implemented in the busybox please?
Alternatively, you could implement a separate action reboot in the inittab