Changeset 1074
- Timestamp:
- 03/27/07 12:46:49 (2 years ago)
- Files:
-
- trunk/ATTACHMENTS/wpa-service/ifplugd_wrapper-script (deleted)
- trunk/ATTACHMENTS/wpa-service/wpa-service2 (deleted)
- trunk/ATTACHMENTS/wpa-service/wpa_actions-script (modified) (1 diff)
- trunk/ATTACHMENTS/wpa-service/wpa_service.conf (modified) (1 diff)
- trunk/wpa-service.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ATTACHMENTS/wpa-service/wpa_actions-script
r1071 r1074 6 6 . /etc/sysconfig/wpa_supplicant/wpa_service.conf 7 7 8 NETWORKDIR=/etc/sysconfig/wpa_supplicant 9 SERVICESDIR=/etc/sysconfig/network-devices/services 8 # already set... 9 #NETWORKDIR=/etc/sysconfig/network.d 10 #SERVICESDIR=/etc/sysconfig/network-devices/services 10 11 11 12 . /etc/sysconfig/rc trunk/ATTACHMENTS/wpa-service/wpa_service.conf
r1071 r1074 23 23 WPA_GLOBAL_FILE=/var/run/wpa_supplicant-global 24 24 WPA_ACCESS_DIR=/var/run/wpa_supplicant 25 26 # The service and network directories: 27 # SERVICESDIR is LFS/BLFS specific 28 NETWORKDIR=/etc/sysconfig/network.d 29 SERVICESDIR=/etc/sysconfig/network-devices/services trunk/wpa-service.txt
r1071 r1074 1 1 AUTHOR: Eloi Primaux eloi AT bliscat dot org 2 2 3 DATE: 2007-0 2-143 DATE: 2007-03-27 4 4 5 5 LICENSE: GNU Free Documentation License Version 2 … … 47 47 also when ready install it by executing : 48 48 49 find ./ -name 'Makefile' -exec sed 's,/usr/local,/usr,g' {} \ &&49 find ./ -name 'Makefile' -exec sed 's,/usr/local,/usr,g' {} \; && 50 50 make && 51 51 make install … … 62 62 63 63 install -d /etc/sysconfig/wpa_supplicant 64 install -d /etc/sysconfig/network.d 64 65 install -m644 wpa_service.conf /etc/sysconfig/wpa_supplicant 65 66 … … 102 103 Those ssid descriptors are named with the name of the SSID they 103 104 describe, 104 and took place in the /etc/sysconfig/ wpa_supplicantdirectory.105 and took place in the /etc/sysconfig/network.d directory. 105 106 106 107 the "AzErTy" SSID descriptor will 107 be /etc/sysconfig/ wpa_supplicant/AzeRtY108 be /etc/sysconfig/network.d/AzeRtY 108 109 109 110 2.1) SSID descriptor syntax: … … 113 114 will be 114 115 115 cat > /etc/sysconfig/wpa_supplicant/IPV4 << "EOF"116 ONBOOT=yes117 SERVICE=ipv4-static118 IP=192.168.1.1119 GATEWAY=192.168.1.2120 PREFIX=24121 BROADCAST=192.168.1.255122 EOF116 cat > /etc/sysconfig/network.d/IPV4 << "EOF" 117 ONBOOT=yes 118 SERVICE=ipv4-static 119 IP=192.168.1.1 120 GATEWAY=192.168.1.2 121 PREFIX=24 122 BROADCAST=192.168.1.255 123 EOF 123 124 124 125 and if the "DHCP" SSID use dhcp : 125 126 126 cat > /etc/sysconfig/wpa_supplicant/DHCP << "EOF"127 ONBOOT="yes"128 SERVICE="dhcpcd"129 DHCP_START="-o"130 DHCP_STOP="-k -o" # the '-o' prevent your interface being destroyed by127 cat > /etc/sysconfig/network.d/DHCP << "EOF" 128 ONBOOT="yes" 129 SERVICE="dhcpcd" 130 DHCP_START="-o" 131 DHCP_STOP="-k -o" # the '-o' prevent your interface being destroyed by 131 132 dhcpcd 132 133 133 # Set PRINTIP="yes" to have the script print134 # the DHCP assigned IP address135 PRINTIP="no"136 137 # Set PRINTALL="yes" to print the DHCP assigned values for138 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".139 PRINTALL="no"140 EOF134 # Set PRINTIP="yes" to have the script print 135 # the DHCP assigned IP address 136 PRINTIP="no" 137 138 # Set PRINTALL="yes" to print the DHCP assigned values for 139 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". 140 PRINTALL="no" 141 EOF 141 142 142 143 for convenience, wpa_actions fall back 143 to /etc/sysconfig/ wpa_supplicant/AUTO144 to /etc/sysconfig/network.d/AUTO 144 145 when no SSID descriptor is available, 145 146 … … 147 148 I use dhcpcd: 148 149 149 cat > /etc/sysconfig/wpa_supplicant/AUTO << "EOF"150 ONBOOT="yes"151 SERVICE="dhcpcd"152 DHCP_START="-o"153 DHCP_STOP="-k -o" # the '-o' prevent your interface being destroyed by150 cat > /etc/sysconfig/network.d/AUTO << "EOF" 151 ONBOOT="yes" 152 SERVICE="dhcpcd" 153 DHCP_START="-o" 154 DHCP_STOP="-k -o" # the '-o' prevent your interface being destroyed by 154 155 dhcpcd 155 156 156 # Set PRINTIP="yes" to have the script print 157 # the DHCP assigned IP address 158 PRINTIP="no" 159 160 # Set PRINTALL="yes" to print the DHCP assigned values for 161 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". 162 PRINTALL="no" 163 EOF 164 165 157 # Set PRINTIP="yes" to have the script print 158 # the DHCP assigned IP address 159 PRINTIP="no" 160 161 # Set PRINTALL="yes" to print the DHCP assigned values for 162 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". 163 PRINTALL="no" 164 EOF 165 166 167 (this files can be symlinked, to prevent duplication) 166 168 167 169 3) The wpa_supplicant.conf (The network keys description) … … 345 347 2006 02 14 some typo fix in scripts, removed ifplugd support, and 346 348 wait_for_up function 349 2007 03 27 Typo fix, ssid descriptors moved to /etc/sysconfig/network.d 350 this modifiy wpa_actions and wpa_service.conf 351 NETWORKDIR and SERVICESDIR moved to wpa_service.conf 352
