slitaz-boot-scripts diff etc/network.conf @ rev 393

network.sh: better handle WEP connections, handle EAP, store Wi-Fi neworks by default; network.conf: migrate to extended format to support EAP arguments, and few more.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Mar 23 02:01:21 2015 +0200 (2015-03-23)
parents 80ff25a65404
children 7acd64a8f538
line diff
     1.1 --- a/etc/network.conf	Mon Feb 17 19:47:59 2014 +0000
     1.2 +++ b/etc/network.conf	Mon Mar 23 02:01:21 2015 +0200
     1.3 @@ -2,6 +2,8 @@
     1.4  # Config file used by: /etc/init.d/network.sh
     1.5  #
     1.6  
     1.7 +NETWORK_CONF_VERSION="2"
     1.8 +
     1.9  # Set default interface.
    1.10  INTERFACE="eth0"
    1.11  
    1.12 @@ -9,7 +11,11 @@
    1.13  # Enable/disable DHCP client at boot time.
    1.14  DHCP="yes"
    1.15  
    1.16 -# Static IP address.
    1.17 +
    1.18 +#
    1.19 +# Settings only for static IP address.
    1.20 +#
    1.21 +
    1.22  # Enable/disable static IP at boot time.
    1.23  STATIC="no"
    1.24  
    1.25 @@ -29,20 +35,71 @@
    1.26  # Set DNS server for a static IP.
    1.27  DNS_SERVER="192.168.0.1"
    1.28  
    1.29 -# Wifi connection.
    1.30 +
    1.31 +#
    1.32 +# Wi-Fi settings.
    1.33 +#
    1.34 +
    1.35  # Enable/disable wireless connection at boot time.
    1.36  WIFI="no"
    1.37  
    1.38 -# Wifi interface (iwconfig) and ESSID.
    1.39 +# Set "yes" if you don't want to store networks you're already connected.
    1.40 +WIFI_BLANK_NETWORKS=""
    1.41 +
    1.42 +
    1.43 +#
    1.44 +# Wi-Fi settings for iwconfig.
    1.45 +#
    1.46 +
    1.47 +# Wi-Fi interface. It can auto-search interface if value below is fail.
    1.48  WIFI_INTERFACE="wlan0"
    1.49 +
    1.50 +# WPA driver; default is "wext" (Wireless Extension).
    1.51 +WIFI_WPA_DRIVER="wext"
    1.52 +
    1.53 +# Set the operating mode of the device. The mode can be "Ad-Hoc", "Managed",
    1.54 +#  "Master", "Repeater", "Secondary", "Monitor" or "Auto".
    1.55 +WIFI_MODE="managed"
    1.56 +
    1.57 +# Set the operating channel in the device. Empty by default.
    1.58 +WIFI_CHANNEL=""
    1.59 +
    1.60 +# Force the card to register to the Access Point given by the address, if it
    1.61 +#  possible. Empty by default to automatic mode.
    1.62 +WIFI_AP=""
    1.63 +
    1.64 +
    1.65 +#
    1.66 +# Wi-Fi settings for wpa_supplicant (for given network).
    1.67 +#
    1.68 +
    1.69 +# SSID (network name)
    1.70  WIFI_ESSID="any"
    1.71 +
    1.72 +# BSSID (optional), use this block to associate with the AP
    1.73 +WIFI_BSSID=""
    1.74 +
    1.75 +# Wi-Fi security. Empty ("") for open network; "ANY" for trying many methods;
    1.76 +# "WEP" for WEP; "WPA" for WPA/WPA2-PSK; "EAP" for 802.1x EAP.
    1.77 +WIFI_KEY_TYPE="any"
    1.78 +
    1.79 +# Password for WEP, WPA, EAP, WAPI, and ANY; both in ASCII or HEX form.
    1.80  WIFI_KEY=""
    1.81 -WIFI_KEY_TYPE="any"
    1.82 -WIFI_AP=""
    1.83 -WIFI_MODE="managed"
    1.84 -WIFI_CHANNEL=""
    1.85 -WPA_DRIVER=""
    1.86  
    1.87 -# Wifi network requiring a user and password
    1.88 +# Method for EAP: "PEAP", "TLS", "TTLS", "PWD".
    1.89 +WIFI_EAP_METHOD=""
    1.90 +
    1.91 +# File path to CA certificate file (PEM/DER).
    1.92 +WIFI_CA_CERT=""
    1.93 +
    1.94 +# File path to client certificate file (PEM/DER).
    1.95 +WIFI_CLIENT_CERT=""
    1.96 +
    1.97 +# Identity string for EAP.
    1.98  WIFI_IDENTITY=""
    1.99 -WIFI_PASSWORD=""
   1.100 +
   1.101 +# Anonymous identity string for EAP.
   1.102 +WIFI_ANONYMOUS_IDENTITY=""
   1.103 +
   1.104 +# Inner authentication parameters: "", "PAP", "MSCHAP", "MSCHAPV2", "GTC".
   1.105 +WIFI_PHASE2=""