Print message AFTER shutdown completes?
0
votes
1
answer
409
views
I am using a bash script with the shutdown command to halt my system. I know that shutdown can print a message as an argument. Here's my current command:
shutdown -h now "Shutdown complete. You may now unplug the power."
However, this prints my message *before* the shutdown command does its thing, and so I see a ton of other messages afterwards, such as "INIT: Sending processes the TERM signal" and "Unmounting local filesystems..."
I want to print a final message at the end of the halt, so that the user knows when it is safe to unplug the power. How can I do this?
(I am on an embedded system running Petalinux 2019.1.)
Asked by Eliezer Miron
(121 rep)
Jan 12, 2021, 07:42 PM
Last activity: Jan 13, 2021, 01:17 PM
Last activity: Jan 13, 2021, 01:17 PM