Recalbox Forum

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

    Solved [bash/python] know if wifi is connected

    Recalbox General
    [bashpython] wifi connected
    3
    4
    935
    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.
    • MinZe
      MinZe last edited by

      Is there anyway to know if wifi is connected?
      I need to run a script once wifi is connected for the first time, doing it on the startup it seems that it doesn't work because wifi is not connected yet

      voljega 1 Reply Last reply Reply Quote 0
      • voljega
        voljega Banned @MinZe last edited by

        @minze better detect that there a connection at all no ? all people don't use wifi ?
        you'll have to use a custom script launched after the emulationstation script I suppose, look into /etc/init.d

        1 Reply Last reply Reply Quote 0
        • MinZe
          MinZe last edited by

          What I wanted to test was if it was connection it didn't matter if it was through wifi or ethernet, I have found an script that I will post here if it works.

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @MinZe last edited by

            @minze just ping your gateway, or check if ifconfig returns anything other than loopback

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

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

            Want to support us ?

            76
            Online

            98.7k
            Users

            28.1k
            Topics

            187.0k
            Posts

            Copyright © 2021 recalbox.com