mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-05 17:07:49 +00:00
Merge branch 'master-wpa' of git://github.com/Gujs/OpenELEC.tv
This commit is contained in:
commit
d1da859038
@ -39,7 +39,7 @@
|
|||||||
<setting type="sep" />
|
<setting type="sep" />
|
||||||
<setting id="NET_SSID" type="text" label="2151" default=""/>
|
<setting id="NET_SSID" type="text" label="2151" default=""/>
|
||||||
<!-- <setting id="NET_HIDDEN" type="bool" label="2152" default="false" /> -->
|
<!-- <setting id="NET_HIDDEN" type="bool" label="2152" default="false" /> -->
|
||||||
<setting id="NET_SECURITY" type="labelenum" label="2153" values="NONE|PSK|WEP" sort="yes" default="NONE" />
|
<setting id="NET_SECURITY" type="labelenum" label="2153" values="NONE|WPA/WPA2|WEP" sort="yes" default="NONE" />
|
||||||
<setting id="NET_PASSPHRASE" type="text" option="hidden" label="2154" default="" enable="!eq(-1,0)"/>
|
<setting id="NET_PASSPHRASE" type="text" option="hidden" label="2154" default="" enable="!eq(-1,0)"/>
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
|
@ -67,10 +67,10 @@
|
|||||||
# WLAN Security
|
# WLAN Security
|
||||||
# This option lets you chose the security protocol for your wireless
|
# This option lets you chose the security protocol for your wireless
|
||||||
# network
|
# network
|
||||||
# Options are "NONE" / "WEP" / "PSK" )
|
# Options are "NONE" / "WEP" / "WPA/WPA2" )
|
||||||
# "NONE" or left blank for an open WLAN (default)
|
# "NONE" or left blank for an open WLAN (default)
|
||||||
# "WEP" for WEP protected WLAN's
|
# "WEP" for WEP protected WLAN's
|
||||||
# "PSK" for WPA protected WLAN's
|
# "WPA/WPA2" for WPA protected WLAN's
|
||||||
SECURITY=""
|
SECURITY=""
|
||||||
|
|
||||||
# WLAN Passphrase
|
# WLAN Passphrase
|
||||||
|
@ -64,10 +64,10 @@ fi
|
|||||||
if [ "$NET_NETWORK" = "WLAN" -a -n "$NET_SSID" ]; then
|
if [ "$NET_NETWORK" = "WLAN" -a -n "$NET_SSID" ]; then
|
||||||
NET_SSID_HEX=`echo -n "$NET_SSID" | od -tx1 | cut -c8-| tr -d ' \n'`
|
NET_SSID_HEX=`echo -n "$NET_SSID" | od -tx1 | cut -c8-| tr -d ' \n'`
|
||||||
|
|
||||||
# NET_SECURITY: ( NONE / WEP / PSK )
|
# NET_SECURITY: ( NONE / WEP / WPA/WPA2 )
|
||||||
if [ "$NET_SECURITY" = "WEP" -a -n "$NET_PASSPHRASE" ]; then
|
if [ "$NET_SECURITY" = "WEP" -a -n "$NET_PASSPHRASE" ]; then
|
||||||
MODE="managed_wep"
|
MODE="managed_wep"
|
||||||
elif [ "$NET_SECURITY" = "PSK" -a -n "$NET_PASSPHRASE" ]; then
|
elif [ "$NET_SECURITY" = "WPA/WPA2" -a -n "$NET_PASSPHRASE" ]; then
|
||||||
MODE="managed_psk"
|
MODE="managed_psk"
|
||||||
else
|
else
|
||||||
MODE="managed_none"
|
MODE="managed_none"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user