]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/networking/wpa_supplicant.exe
2 ########################################################################
5 # Description : wpa_supplicant Script
7 # Authors : IPFire Development Team <developers@ipfire.org>
11 # Notes : This script starts/stops the dhclient if a WPA/WPA2
12 # connection to an AP successfull has been established
15 ########################################################################
19 .
/etc
/init.d
/networking
/functions.network
21 # Gather required information from wpa_cli.
25 # Check if the RED device has been configured to use DHCP or exit immediately.
26 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/ethernet
/settings
)
27 if [ ! "${RED_TYPE}" == "DHCP" ] ; then
31 case "${wpa_state}" in
34 dhcpcd_start
"${device}"
41 dhcpcd_stop
"${device}"
47 # When we ever got here, there is a really big problem.