Shutdown process / status display.
-
I want to display the "Off" status on Axon. When we switch OS to shutdown mode (shutdown -h now), I want to turn on the green LED when the user can switch power off. So I will avoid violating the flash card and the os file system.
Can't find a solution, maybe there are some standard solutions?
-
Hi @beergeek,
there is probably a number of ways how to do it. This could be one of them:- create
/usr/local/sbin/shutdownand add the exec bit to it - in the script, specify the logic - get the IOs into safe state and/or light up the user LEDs
- at the end of the script, call
shutdown -h now
The logic can use the SysFS approach such as this:
echo 1 > /run/unipi/io_group1/do_1_01/do_value# sets DO1.1 to trueAlthough you don't have the user LEDs available in the SysFS right now. For that, you can use
mbpolland set it via ModbusTCP.Best regards,
Martin - create
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login