Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Switch of the accesspoint? (WRAP)

    Scheduled Pinned Locked Moved Wireless
    11 Posts 5 Posters 4.8k Views
    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.
    • H
      hoba
      last edited by

      You can add custom cronjobs to do so. Go to diagnostics, edit file "/etc/crontab" and add an ifconfig up or down at the desired times for this interface. I guess you'll have to run the wireless config shellscript that the webgui creates after bringing up the interface again too. You'll find it in /tmp/. Depending on the name of the interface it has different names but you should easily find it by checking the content of this folder (don't have a system as reference available right now to look it up exactly).

      1 Reply Last reply Reply Quote 0
      • L
        leinad
        last edited by

        Thank you very much for the fast answer!!!
        8)

        Leinad

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          If you get this to work please share your cronjob settings. Others might be interested in this as well.

          1 Reply Last reply Reply Quote 0
          • C
            Clown
            last edited by

            That is exactly what I was looking for in the forum.

            I just need the wireless card occasionally, so I would like to switch the wireless card off during the other time. I think I can extract the necesary commands out of the cron job.

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              Just looked up the script that brings up the wireless interface (located in /tmp): ath0_setup.sh (for my ath0 interface, name depends on the used nic and the amount of this type you have in your box)

              1 Reply Last reply Reply Quote 0
              • C
                Clown
                last edited by

                It would be nice if there was a switch in the webGUI to power off the wireless card (not just disable), so there is no radiation anymore.

                1 Reply Last reply Reply Quote 0
                • J
                  jeroen234
                  last edited by

                  if it is disabeled then its powerd off so then it will not send any more so there is no radiation anymore

                  1 Reply Last reply Reply Quote 0
                  • C
                    Clown
                    last edited by

                    @jeroen234:

                    if it is disabeled then its powerd off so then it will not send any more so there is no radiation anymore

                    Are you shure about that, I think it doesn't power off the card. I'm quite sensitive on radiation…

                    1 Reply Last reply Reply Quote 0
                    • H
                      hoba
                      last edited by

                      It does, there is not even a channel or frequency configured if the device is disabled. Check with http://www.netstumbler.com/downloads/ if you are paranoid  ;)

                      1 Reply Last reply Reply Quote 0
                      • L
                        lsf
                        last edited by

                        If you do a "sysctl -a |grep rfsilent" and "sysctl -a |grep rfkill" you will find two sysctl strings that can possibly disable your card as well. If you are lucky your card supports this. Try to change the sysctls from 1 to 0 and 0 to 1 to enable/disable the card. If you can get this to work then use that sysctl line in a cron job to enable/disable the radio part of your card.

                        -lsf

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.