mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-10 19:27:32 +01:00
<empty commit message>
This commit is contained in:
parent
6fa71ee2e8
commit
bebf7d2eb0
1 changed files with 2 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ local encryption=""
|
|||
case "$action" in
|
||||
get_value)
|
||||
encryption=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get wireless.@wifi-iface[$num].encryption`
|
||||
if [ "$encryption" = "wep-shared" -o "$encryption" = "wep-open" ]; then
|
||||
if [ "$encryption" = "wep-shared" ]; then
|
||||
val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get wireless.@wifi-iface[$num].key`
|
||||
else
|
||||
val=""
|
||||
|
|
@ -546,6 +546,7 @@ case $action in
|
|||
set_value)
|
||||
delay_command "wifi" "wifi" "45"
|
||||
/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q set wireless.@wifi-iface[$num].encryption=wep-shared
|
||||
/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q set wireless.@wifi-iface[$num].key="1"
|
||||
i=1
|
||||
for key in `/usr/sbin/wepkeygen 64 $val`;do
|
||||
/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q set wireless.@wifi-iface[$num].key$i="$key"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue