whith : runlevel | cut -d ' ' -f2 ....
0 = halt
6 = reboot
Le 06/08/2016 à 18:52, TJF a écrit :
> Hi Philippe!
>
> Am Freitag, 5. August 2016 18:13:28 UTC+2 schrieb philippe.frossard:
>
> Is there a way to know if the system halt or reboot ?
>
>
> There're several ways, depending on the operating system working on
> your board. Usually current boards ship with Debian Linux. Check the
> output of command
>
> |
> uname -a
> |
>
> It shoud look like
>
> |
> Linuxbeaglebone 3.8.13-bone71 #1 SMP Tue Mar 17 18:07:44 UTC 2015
> armv7l GNU/Linux
> |
>
> In that case boot and halt process is managed by /systemd. /Find
> details at Wikipedia page <
https://en.wikipedia.org/wiki/Systemd> and
> the links at the bottom.
>
> BR
>
--
Philippe Frossard