Navigation

    Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Custom Scripts not working anymore

    Recalbox General
    scripts anymore
    3
    9
    659
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lackyluuk
      lackyluuk Translator
      Translation Master
      last edited by

      Hi 🙂

      Since a long time I use some customs scripts in /etc/init.d for the startup & shutdown procedure. It worked with no problems.
      Recently I had to setup my recalbox from scratch (due to an upgrade error from 6.1 to 6.1.1) and somehow my scripts are not called anymore.
      If I log in via ssh and call the scripts manually, they work, but during startup they don't.

      I use the following structure for startup:

      start() {
      // Call a script which is located in /recalbox/scripts
      }

      case "$1" in
      start)
      start
      ;;
      esac

      Does somebody know a reason why this is not working anymore? Maybe I really miss a small thing somewhere..

      Thanks 🙂

      NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

      1 Reply Last reply Reply Quote 0
      • lackyluuk
        lackyluuk Translator
        Translation Master
        last edited by

        Somebody of the team has an idea? Thank you 🙂

        NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

        1 Reply Last reply Reply Quote 0
        • Michael Baudino
          Michael Baudino Staff
          Developer
          Global moderator
          Team
          last edited by

          Hi @lackyluuk,

          Could you please post the exact and complete script? I could have a look at it and try to reproduce.
          Could you also post the output of ls -l /etc/init.d/?

          Thanks in advance.

          1 Reply Last reply Reply Quote 0
          • lackyluuk
            lackyluuk Translator
            Translation Master
            last edited by

            @Michael-Baudino Yes sure. I will post it this weekend when I am home. Thanks in advance 🙂

            NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

            1 Reply Last reply Reply Quote 0
            • Michael Baudino
              Michael Baudino Staff
              Developer
              Global moderator
              Team
              last edited by

              Unrelated, but I love the NintendoRS linked in your signature: awesome work 😍
              Ooc, are you still using it?

              1 Reply Last reply Reply Quote 0
              • lackyluuk
                lackyluuk Translator
                Translation Master
                last edited by lackyluuk

                @Michael-Baudino
                Thanks 🙂
                Yes, I am still using it. But more to configure new themes or maintain the game lists. Recently i just finished Zelda - A link to the past 🙂

                Unfortunately I have to write from my smartphone since it tells me that my account is banned. Reason: insulting. Most probably I used the wrong password to often. But on the smartphone I am still logged in 😄

                Here is the content of the script which I am starting in /etc/init.d (S32StartFanAndVolumeControl.py)

                #!/usr/bin/python
                
                import subprocess
                
                try:
                    subprocess.Popen(["python","/recalbox/scripts/fanControl.py"])
                    subprocess.Popen(["python","/recalbox/scripts/volumeControl.py"])
                
                except KeyboardInterrupt:
                    print "Quit"
                

                Maybe this code is very bad, but it works when I run this script manually. And in the past (before 6.1.1) it also worked during startup.
                I also tried the structure with the start() case but also no success.

                ls -l /etc/init.d shows that the rights are the same as for the other scripts (-rwxr-xr-x l root root)

                Thank you for your help. Really appreciate 🙂

                NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

                OyyoDams 1 Reply Last reply Reply Quote 0
                • Michael Baudino
                  Michael Baudino Staff
                  Developer
                  Global moderator
                  Team
                  last edited by

                  Thanks a lot, I'll try to reproduce 👍

                  Regarding your "insulting" ban, I have no idea what happen (unless you actually insulted someone, indeed 😅), but maybe @OyyoDams can help?

                  1 Reply Last reply Reply Quote 0
                  • OyyoDams
                    OyyoDams Staff
                    Developer
                    Global moderator
                    Team
                    @lackyluuk
                    last edited by OyyoDams

                    @lackyluuk your account works so for sure it's not banned. Please double check your password.

                    lackyluuk 1 Reply Last reply Reply Quote 0
                    • lackyluuk
                      lackyluuk Translator
                      Translation Master
                      @OyyoDams
                      last edited by

                      @oyyodams yes, now it works. I tried using my nickname, but then it failed and told me I am banned. I used the email instead and you're right 🙂

                      @Michael-Baudino do you already had time to doublecheck the script issue? thanks 🙂

                      NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Want to support us ?

                      87
                      Online

                      88.3k
                      Users

                      26.2k
                      Topics

                      179.8k
                      Posts

                      Copyright © 2021 recalbox.com