Permalink
Browse files

Remove 'wifiup'

  • Loading branch information...
1 parent eca1e88 commit 333c194a77ec9a5b0eaac3bb7c7a35cee7acd454 @rking rking committed with rking@sharpsaw.org Jan 24, 2013
Showing with 0 additions and 26 deletions.
  1. +0 −26 bin/wifiup
View
@@ -1,26 +0,0 @@
-#!/bin/sh -xe
-## Wifi startup sequence (using dhcpcd and possibly using wpa_supplicant)
-actually_set_up() {
- sudo ifconfig $if down
- sudo killall dhcpcd wpa_supplicant || true
- sudo ifconfig $if up
- sudo iwconfig $if essid $essid
- if sudo grep "ssid=.$essid" $wpa_supplicant_conf_path; then
- sudo wpa_supplicant -B -Dwext -i$if -c$wpa_supplicant_conf_path
- else
- : wpa_passphrase $essid
- : -- Consider piping that into sudo tee $wpa_supplicant_conf_path --
- fi
- sudo dhcpcd $if
- sudo /etc/init.d/ntp-client start &
- ping -c1 4.2.2.2; ping -c2 a.de
-}
-wpa_supplicant_conf_path=/etc/wpa_supplicant/wpa_supplicant.conf
-if=${IF:-wlan0}
-essid=$1
-if [ -n "$essid" ]; then
- actually_set_up
-else
- sudo iwlist scan | grep 'Cell\|Quality\|ESSID'
-fi
-

0 comments on commit 333c194

Please sign in to comment.