john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Wifi start wpa.sh

!/bin/bash

start wpa in background on interface wlan0 with ssid/password file

ifup wlan0 wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf dhclient wlan0

route add default gw 192.168.1.254

!/bin/bash

BEGIN INIT INFO

Provides: MY-wifi-start-wpa.sh

Required-Start: $network

Required-Stop:

Default-Start: S

Default-Stop: 0 6

Short-Description: connect to local wifi with wpa_supplicant using ssid/password file

Description: connect to local wifi with wpa_supplicant using ssid/password file

END INIT INFO

start wpa in background on interface wlan0 with ssid/password file

wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf ifup wlan0


  • « Wget podcasts
  • INCOMPLETE TrimFile »

Published

Jan 9, 2012

Category

linux

~77 words

Tags

  • scripts 63
  • start 8
  • wifi 10
  • wpa.sh 1