Created
          March 23, 2021 04:49 
        
      - 
      
 - 
        
Save devymex/9bfe34a1aaa524f578778cb85150477a to your computer and use it in GitHub Desktop.  
    Renew IP address of WIFI connection by DHCP
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| WIFI_DEVICE=$(iw dev | grep Interface | head -n 1 | sed 's/.*Interface //') | |
| sudo dhclient -r $WIFI_DEVICE | |
| sudo dhclient $WIFI_DEVICE | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment