/[baselayout]/branches/baselayout-1_12/net-scripts/net/wpa_supplicant.sh
Gentoo

Diff of /branches/baselayout-1_12/net-scripts/net/wpa_supplicant.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2224 Revision 2225
35 35
36# bool wpa_supplicant_check_installed(void) 36# bool wpa_supplicant_check_installed(void)
37# 37#
38# Returns 0 if wpa_supplicant is installed, otherwise 1 38# Returns 0 if wpa_supplicant is installed, otherwise 1
39wpa_supplicant_check_installed() { 39wpa_supplicant_check_installed() {
40 local report="${1:-false}" installed="0"
41 if [[ ! -x /sbin/wpa_supplicant ]] ; then 40 [[ -x /sbin/wpa_supplicant ]] && return 0
42 installed="1"
43 ${report} && eerror "For WPA support (wpa_supplicant) support, emerge net-wireless/wpa_supplicant" 41 ${1:-false} && eerror "For WPA support (wpa_supplicant) support, emerge net-wireless/wpa_supplicant"
44 fi 42 return 1
45 if [[ ! -e /proc/net/packet ]] ; then
46 installed="1"
47 if ${report} ; then
48 eerror "wpa_supplicant requires Packet Socket"
49 eerror "(CONFIG_PACKET=y) enabled in the kernel"
50 fi
51 fi
52 return "${installed}"
53} 43}
54 44
55# bool wpa_supplicant_exists(char *interface) 45# bool wpa_supplicant_exists(char *interface)
56# 46#
57# Checks to see if wireless extensions are enabled on the interface 47# Checks to see if wireless extensions are enabled on the interface

Legend:
Removed from v.2224  
changed lines
  Added in v.2225

  ViewVC Help
Powered by ViewVC 1.1.20