Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

RPI ChromeOS Wifi Configuration

By: a guest on Apr 18th, 2011  |  syntax: Bash  |  size: 0.84 KB  |  views: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. NETWORK=$(wpa_cli -i wlan0 add_network) || exit
  4.  
  5. SSID="rpi_802.1x"
  6.  
  7. wpa_cli -i wlan0 set_network $NETWORK ssid \"$SSID\" || exit
  8. wpa_cli -i wlan0 set_network $NETWORK scan_ssid 1 || exit
  9. wpa_cli -i wlan0 set_network $NETWORK key_mgmt IEEE8021X || exit
  10. wpa_cli -i wlan0 set_network $NETWORK group WEP40 || exit
  11. wpa_cli -i wlan0 set_network $NETWORK auth_alg OPEN || exit
  12. wpa_cli -i wlan0 set_network $NETWORK eap PEAP || exit
  13.  
  14. read -p "RCS ID: " -s USERNAME || exit
  15. read -p "Password for $USERNAME: " -s PASSWORD || exit
  16.  
  17. wpa_cli -i wlan0 set_network $NETWORK identity \"$USERNAME\" || exit
  18. wpa_cli -i wlan0 set_network $NETWORK password \"$PASSWORD\" || exit
  19. wpa_cli -i wlan0 set_network $NETWORK phase2 \"auth=MSCHAPV2\" || exit
  20. wpa_cli -i wlan0 set_network $NETWORK priority 2 || exit
  21. wpa_cli -i wlan0 select_network $NETWORK
clone this paste RAW Paste Data