Site Tools


toggle_radio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
toggle_radio [2025/10/19 21:19] – [Specific WiFi SSID Operation] hogwildtoggle_radio [2025/10/19 21:22] (current) – [Control Specific Wireless Chipsets (2.4/5GHz)] hogwild
Line 51: Line 51:
  \\ ''int=eth1''  \\ ''int=eth1''
  
- \\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && echo "radio $int is off" || echo "radio $int is on"''+ \\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && echo "radio $int is off" || echo "radio $int is on"'' \\ 
  
- \\ \\+ \\ \\ 
  
 \\ **Toggle interface state:** \\ **Toggle interface state:**
Line 135: Line 135:
  
 **Take down an interface** \\ \\  **Take down an interface** \\ \\ 
 +
 +''iplink set wl1.3 down'' \\ 
  
  \\ \\   \\ \\ 
-''iplink set wl1.3 down'' 
- 
- \\ 
  
 **Bring up an interface:** **Bring up an interface:**
Line 146: Line 145:
  
  \\  \\
 + \\ 
  
 ==== Specific WiFi SSID Operation ==== ==== Specific WiFi SSID Operation ====
  
-Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. +Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. You can disable that SSID on all interfaces everywhere, as follows:\\
- +
-You can disable that SSID on all interfaces everywhere, as follows:\\+
  
  \\  \\
Line 162: Line 159:
  \\ \\   \\ \\ 
  
-**Force On**+**Force On** \\ \\ 
  
- \\ \\  ''SSID=MYCOOLSSID''\\ \\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio on; done''+''SSID=MYCOOLSSID'' \\ \\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio on; done''
  
- \\ + \\  
- + \\  
- \\+ \\  
 + \\ 
toggle_radio.1760905145.txt.gz · Last modified: by hogwild