Hardware: Raspberry Pi 4 Model B YunoHost version: 4.1.7.1 (stable) I have access to my server : Through SSH | through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hello,
I am trying to turn off the LEDs of my Raspberry.
It seems that the way to do it differs depending on the OS.
For Raspbian for example, it seems to be the following:
echo 1 >/sys/class/leds/led0/brightness #Turn on
echo 0 >/sys/class/leds/led0/brightness #Turn off
Based on that, I tried this:
echo 0 | sudo tee /sys/class/leds/phy0-led/brightness
It sends me back a “0” but nothing changes.
What I would like to do is, if possible, to turn off the following LEDs:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
echo 0 > /sys/class/leds/led0/brightness #Turn off Green LED
echo 0 > /sys/class/leds/led1/brightness #Turn off Red LED
exit 0