Turn off Ethernet LEDs on Raspberry Pi

Translator:
Hello,
I am trying to use this script:

# Disable the PWR and Activity LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# Disable Ethernet LEDs
dtparam=eth_led0=14
dtparam=eth_led1=14

to turn off the lighting in Raspberry Pi 3. I edited the /boot/config.txt file, but it didn’t do anything. Then I tried the /boot/userconfig.txt file, but it did not work either.

Am i doing something wrong? Please help.

PS. For RPi4 it looks like this:

[pi4]
# Disable Ethernet LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4

Don’t expect a lot of help with sow few information…
Which script?

I already edited the first message . I’m sorry.

:+1:thanks

This seems to only work on RPi3B+ and RPi4. I have RPi3 Model B Rev 1.2.

It would be nice if someone could confirm this.

I have rpi 3b+ and this script worked for me. Thanks!