Skip to content

Instantly share code, notes, and snippets.

@patterns
Created September 22, 2020 03:10
Show Gist options
  • Select an option

  • Save patterns/c117de5a788741cef49613446b4d65ee to your computer and use it in GitHub Desktop.

Select an option

Save patterns/c117de5a788741cef49613446b4d65ee to your computer and use it in GitHub Desktop.

Revisions

  1. patterns created this gist Sep 22, 2020.
    10 changes: 10 additions & 0 deletions wifi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/sh


    # after : sudo systemctl stop/disable wpa_supplicant.service
    ##sudo wpa_cli terminate
    ##sleep 2

    sudo wpa_supplicant -B -iwlan0 -c $HOME/.config/wlan0.wpa
    sleep 5
    sudo dhclient -v -cf $HOME/.config/dhclient.conf wlan0