Hello all.
I'd like to share a solution I found to monitor the status of an old Raspberry-Pi 1 model B (old and slow
but still usable) which I use as a Pi-Hole at my small home lab.
I was looking for a way I could see when the OS was correctly and completely shutdown before I could unplug
the power cord when needed.
On the Internet I only managed to find Linux stuff suggesting tinkering with the GPIO pins, adding external LEDs, soldering resistors, etc.
Not kinda the easier way.
Tinkering around with the system (FreeBSD 13.3-RELEASE releng/13.3-n257428-80d2b634ddf0 RPI-B arm),
I found the device: /dev/led/led0, that controls the SBC's ACT led.
As I use the Pi's SD card only as a boot loader to then load FreeBSD completely from a USB drive (my troubles
with SD card data corruption are over now) the ACT led sits idle and available.
So, it is just adding:
to /etc/rc.local
and
to /etc/rc.shutdown.
And voilà... That is doing the job for now and my problem is solved.
I hope that helps... regards!
I'd like to share a solution I found to monitor the status of an old Raspberry-Pi 1 model B (old and slow
but still usable) which I use as a Pi-Hole at my small home lab.
I was looking for a way I could see when the OS was correctly and completely shutdown before I could unplug
the power cord when needed.
On the Internet I only managed to find Linux stuff suggesting tinkering with the GPIO pins, adding external LEDs, soldering resistors, etc.
Not kinda the easier way.
Tinkering around with the system (FreeBSD 13.3-RELEASE releng/13.3-n257428-80d2b634ddf0 RPI-B arm),
I found the device: /dev/led/led0, that controls the SBC's ACT led.
As I use the Pi's SD card only as a boot loader to then load FreeBSD completely from a USB drive (my troubles
with SD card data corruption are over now) the ACT led sits idle and available.
So, it is just adding:
Code:
echo 1 > /dev/led/led0
to /etc/rc.local
and
Code:
echo 0 > /dev/led/led0
to /etc/rc.shutdown.
And voilà... That is doing the job for now and my problem is solved.
I hope that helps... regards!