Change behaviour of wireless toggle button

Forum Forums General Software Change behaviour of wireless toggle button

  • This topic has 16 replies, 5 voices, and was last updated May 25-3:21 pm by TheBigBadBoy.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #83623
    Member
    blur13
      Helpful
      Up
      0
      ::

      How does that IF statement work? Is it based on the exit code of the sed command?

      #83637
      Member
      TheBigBadBoy
        Helpful
        Up
        0
        ::

        First, my apologies for the garbage code.

        The IF statement works as following : it checks whether there is characters/string at line 13 of the command ‘connmanctl services’.
        If there are characters, it means that services are enabled (such as wifi IDs in my case), the condition is therefore TRUE. (see the quotes in between the braquets : “$()”)

        But now I am wondering : perhaps this condition won’t work as intended if my wifi is ON and there is no wifi avalaible around…

      Viewing 2 posts - 16 through 17 (of 17 total)
      • You must be logged in to reply to this topic.