slitaz-boot-scripts annotate usr/share/slitaz/network.conf_migration @ rev 399

init: raiddev raidmail support in cmdline
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 30 09:48:29 2015 +0200 (2015-03-30)
parents 6c2d6362887d
children
rev   line source
al@393 1 # Migrate existing settings to a new format file
al@393 2 # Sourced and executed by /etc/init.d/network.sh
al@393 3
al@393 4 if [ "$NETWORK_CONF_VERSION" != '2' ]; then
al@393 5 echo "Moving old settings to $CONF.old"
al@393 6 mv -f $CONF $CONF.old
al@393 7
al@393 8 echo "Migrate existing settings to a new format $CONF"
al@393 9 cat > $CONF << EOT
al@393 10 # /etc/network.conf: SliTaz system wide networking configuration.
al@393 11 # Config file used by: /etc/init.d/network.sh
al@393 12 #
al@393 13
al@393 14 NETWORK_CONF_VERSION="2"
al@393 15
al@393 16 # Set default interface.
al@393 17 INTERFACE="$INTERFACE"
al@393 18
al@393 19 # Dynamic IP address.
al@393 20 # Enable/disable DHCP client at boot time.
al@393 21 DHCP="$DHCP"
al@393 22
al@393 23
al@393 24 #
al@393 25 # Settings only for static IP address.
al@393 26 #
al@393 27
al@393 28 # Enable/disable static IP at boot time.
al@393 29 STATIC="$STATIC"
al@393 30
al@393 31 # Set IP address and netmask for a static IP.
al@393 32 IP="$IP"
al@393 33 NETMASK="$NETMASK"
al@393 34
al@393 35 # Set broadcast address
al@393 36 BROADCAST="$BROADCAST"
al@393 37
al@393 38 # Set route gateway for a static IP.
al@393 39 GATEWAY="$GATEWAY"
al@393 40
al@393 41 # Set domain name
al@393 42 DOMAIN="$DOMAIN"
al@393 43
al@393 44 # Set DNS server for a static IP.
al@393 45 DNS_SERVER="$DNS_SERVER"
al@393 46
al@393 47
al@393 48 #
al@393 49 # Wi-Fi settings.
al@393 50 #
al@393 51
al@393 52 # Enable/disable wireless connection at boot time.
al@393 53 WIFI="$WIFI"
al@393 54
al@393 55 # Set "yes" if you don't want to store networks you're already connected.
al@393 56 WIFI_BLANK_NETWORKS="$WIFI_BLANK_NETWORKS"
al@393 57
al@393 58
al@393 59 #
al@393 60 # Wi-Fi settings for iwconfig.
al@393 61 #
al@393 62
al@393 63 # Wi-Fi interface. It can auto-search interface if value below is fail.
al@393 64 WIFI_INTERFACE="$WIFI_INTERFACE"
al@393 65
al@393 66 # WPA driver; default is "wext" (Wireless Extension).
al@393 67 WIFI_WPA_DRIVER="$WIFI_WPA_DRIVER"
al@393 68
al@393 69 # Set the operating mode of the device. The mode can be "Ad-Hoc", "Managed",
al@393 70 # "Master", "Repeater", "Secondary", "Monitor" or "Auto".
al@393 71 WIFI_MODE="$WIFI_MODE"
al@393 72
al@393 73 # Set the operating channel in the device. Empty by default.
al@393 74 WIFI_CHANNEL="$WIFI_CHANNEL"
al@393 75
paul@395 76 # Force the card to register to the Access Point given by the address, if it's
paul@395 77 # possible. Empty by default to automatic mode.
al@393 78 WIFI_AP="$WIFI_AP"
al@393 79
al@393 80
al@393 81 #
al@393 82 # Wi-Fi settings for wpa_supplicant (for given network).
al@393 83 #
al@393 84
al@393 85 # SSID (network name)
al@393 86 WIFI_ESSID="$WIFI_ESSID"
al@393 87
al@393 88 # BSSID (optional), use this block to associate with the AP
al@393 89 WIFI_BSSID="$WIFI_BSSID"
al@393 90
al@393 91 # Wi-Fi security. Empty ("") for open network; "ANY" for trying many methods;
al@393 92 # "WEP" for WEP; "WPA" for WPA/WPA2-PSK; "EAP" for 802.1x EAP.
al@393 93 WIFI_KEY_TYPE="$WIFI_KEY_TYPE"
al@393 94
al@393 95 # Password for WEP, WPA, EAP, WAPI, and ANY; both in ASCII or HEX form.
al@393 96 WIFI_KEY="$WIFI_KEY"
al@393 97
al@393 98 # Method for EAP: "PEAP", "TLS", "TTLS", "PWD".
al@393 99 WIFI_EAP_METHOD="$WIFI_EAP_METHOD"
al@393 100
al@393 101 # File path to CA certificate file (PEM/DER).
al@393 102 WIFI_CA_CERT="$WIFI_CA_CERT"
al@393 103
al@393 104 # File path to client certificate file (PEM/DER).
al@393 105 WIFI_CLIENT_CERT="$WIFI_CLIENT_CERT"
al@393 106
al@393 107 # Identity string for EAP.
al@393 108 WIFI_IDENTITY="$WIFI_IDENTITY"
al@393 109
al@393 110 # Anonymous identity string for EAP.
al@393 111 WIFI_ANONYMOUS_IDENTITY="$WIFI_ANONYMOUS_IDENTITY"
al@393 112
al@393 113 # Inner authentication parameters: "", "PAP", "MSCHAP", "MSCHAPV2", "GTC".
al@393 114 WIFI_PHASE2="$WIFI_PHASE2"
al@393 115 EOT
al@393 116 fi