更新
This commit is contained in:
parent
e50b4b3e97
commit
275f525034
@ -29,7 +29,7 @@ o.description = translate("Enable the manual configuration of modem information"
|
|||||||
-- 启用网络接口别名
|
-- 启用网络接口别名
|
||||||
o = s:option(Flag, "network_interface_alias", translate("Network Interface Alias"))
|
o = s:option(Flag, "network_interface_alias", translate("Network Interface Alias"))
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
o.description = translate("Enable network interfaces with alias names")
|
o.description = translate("Enable automatic creation of alias network interface")
|
||||||
|
|
||||||
-- 配置模组信息
|
-- 配置模组信息
|
||||||
s = m:section(TypedSection, "modem-device", translate("Modem Config"))
|
s = m:section(TypedSection, "modem-device", translate("Modem Config"))
|
||||||
|
@ -589,8 +589,8 @@ msgstr "(启用后将禁用自动扫描并配置模组信息功能)"
|
|||||||
msgid "Network Interface Alias"
|
msgid "Network Interface Alias"
|
||||||
msgstr "网络接口别名"
|
msgstr "网络接口别名"
|
||||||
|
|
||||||
msgid "Enable network interfaces with alias names"
|
msgid "Enable automatic creation of alias network interface"
|
||||||
msgstr "启用网络接口为别名形式"
|
msgstr "启用自动创建别名网络接口"
|
||||||
|
|
||||||
msgid "Not null"
|
msgid "Not null"
|
||||||
msgstr "不能为空"
|
msgstr "不能为空"
|
||||||
|
@ -180,7 +180,7 @@ set_ipv4v6_interface()
|
|||||||
|
|
||||||
#设置IPV6网络接口
|
#设置IPV6网络接口
|
||||||
local network_interface_alias=$(uci -q get modem.@global[0].network_interface_alias)
|
local network_interface_alias=$(uci -q get modem.@global[0].network_interface_alias)
|
||||||
case $pdp_type in
|
case $network_interface_alias in
|
||||||
"0") set_ipv6_interface "${ipv6_interface_name}" "${network_interface}" ;;
|
"0") set_ipv6_interface "${ipv6_interface_name}" "${network_interface}" ;;
|
||||||
"1") set_ipv6_interface "${ipv6_interface_name}" "@${ipv4_interface_name}" ;; #别名
|
"1") set_ipv6_interface "${ipv6_interface_name}" "@${ipv4_interface_name}" ;; #别名
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user