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:11] – [Control Specific WiFi SSIDs] 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 132: Line 132:
 The //iplink //command is another reliable tool, allowing you to disable any interface or change its MAC address. The //iplink //command is another reliable tool, allowing you to disable any interface or change its MAC address.
  \\   \\ 
-For example: +For example: \\ \\ 
- \\  +
- \\   \\ **Take down an interface** \\ \\  +
- \\  +
-''iplink set wl1.3 down''+
  
- \\+**Take down an interface** \\ \\  
 + 
 +''iplink set wl1.3 down'' \\  
 + 
 + \\ \\ 
  
 **Bring up an interface:** **Bring up an interface:**
Line 145: Line 145:
  
  \\  \\
 + \\ 
  
 +==== Specific WiFi SSID Operation ====
  
-==== WiFi SSID-specific operation ==== +Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. You can disable that SSID on all interfaces everywhere, as follows:\\
- +
-Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. +
- +
-You can disable that SSID on all interfaces everywhere, as follows:\\+
  
  \\  \\
  
-**Force Off**+**Force Off** \\ \\ 
  
- \\ \\  ''SSID=MYCOOLSSID''\\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio off; done''+''SSID=MYCOOLSSID''\\ \\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio off; done''
  
- \\+ \\ \\ 
  
- \\ +**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.1760904713.txt.gz · Last modified: by hogwild