Changeset 1074

Show
Ignore:
Timestamp:
03/27/07 12:46:49 (2 years ago)
Author:
tushar
Message:

Update Hint: wpa-service

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ATTACHMENTS/wpa-service/wpa_actions-script

    r1071 r1074  
    66. /etc/sysconfig/wpa_supplicant/wpa_service.conf 
    77 
    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 
    1011 
    1112. /etc/sysconfig/rc 
  • trunk/ATTACHMENTS/wpa-service/wpa_service.conf

    r1071 r1074  
    2323        WPA_GLOBAL_FILE=/var/run/wpa_supplicant-global 
    2424        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  
    11AUTHOR: Eloi Primaux eloi AT bliscat dot org 
    22 
    3 DATE: 2007-02-14 
     3DATE: 2007-03-27 
    44 
    55LICENSE: GNU Free Documentation License Version 2 
     
    4747also when ready install it by executing : 
    4848 
    49 find ./ -name 'Makefile' -exec sed 's,/usr/local,/usr,g' {} \ && 
     49find ./ -name 'Makefile' -exec sed 's,/usr/local,/usr,g' {} \; && 
    5050make && 
    5151make install 
     
    6262 
    6363  install -d /etc/sysconfig/wpa_supplicant 
     64  install -d /etc/sysconfig/network.d 
    6465  install -m644 wpa_service.conf /etc/sysconfig/wpa_supplicant 
    6566 
     
    102103 Those ssid descriptors are named with the name of the SSID they 
    103104describe, 
    104  and took place in the /etc/sysconfig/wpa_supplicant directory. 
     105 and took place in the /etc/sysconfig/network.d directory. 
    105106  
    106107 the "AzErTy" SSID descriptor will 
    107 be /etc/sysconfig/wpa_supplicant/AzeRtY 
     108be /etc/sysconfig/network.d/AzeRtY 
    108109 
    1091102.1) SSID descriptor syntax: 
     
    113114will be 
    114115 
    115        cat > /etc/sysconfig/wpa_supplicant/IPV4 << "EOF" 
    116        ONBOOT=yes 
    117        SERVICE=ipv4-static 
    118        IP=192.168.1.1 
    119        GATEWAY=192.168.1.2 
    120        PREFIX=24 
    121        BROADCAST=192.168.1.255 
    122        EOF 
     116        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 
    123124 
    124125and if the "DHCP" SSID use dhcp : 
    125126 
    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 by 
     127        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 
    131132dhcpcd  
    132133 
    133        # Set PRINTIP="yes" to have the script print 
    134        # the DHCP assigned IP address 
    135        PRINTIP="no" 
    136  
    137        # Set PRINTALL="yes" to print the DHCP assigned values for 
    138        # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". 
    139        PRINTALL="no" 
    140        EOF 
     134        # 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 
    141142 
    142143for convenience, wpa_actions fall back 
    143 to /etc/sysconfig/wpa_supplicant/AUTO 
     144to /etc/sysconfig/network.d/AUTO 
    144145when no SSID descriptor is available, 
    145146 
     
    147148I use dhcpcd:    
    148149 
    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 by 
     150        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 
    154155dhcpcd 
    155156 
    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) 
    166168 
    1671693) The wpa_supplicant.conf (The network keys description)  
     
    3453472006 02 14 some typo fix in scripts, removed ifplugd support, and 
    346348wait_for_up function 
     3492007 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