HELP ON SHUTDOWN.SH SCRIPT

  • Hello how are you all doing?

    I've been struggling to find a way to make this script works.

    I have a X735 board from Suptronics. I want to shutdown my Rock Pi4 + X735 whenever I send the command "poweroff". By default they gpio that has this feature is the number 131(pin 12).

    I created the script .config/shutdown.sh with the following content:

    What is happening is:

    If I type "halt":

    Rock Pi: Goes off with all leds off

    X735: Goes off with all leds off

    If I type "poweroff":

    Rock PI: Goes off but with green led on

    X735: Stays on

    I also tried to make a script called .config/x735.sh with the following script:

    And it works normally shutting everything off like expected.

    So I believe it's something related to my scripts, I also tried to use systemd to run the x735.sh script before the shutdown but it never works.

    ;(;(;(