add default metric option in slot configuration

This commit is contained in:
fujr 2024-11-13 14:43:09 +08:00
parent 9f116c5270
commit 32697d03d0
4 changed files with 13 additions and 2 deletions

View File

@ -57,6 +57,11 @@ for line in usb_slots:lines() do
end
default_metric = s:option(Value, "default_metric", translate("Default Metric"))
default_metric.rmempty = true
default_metric.description = translate("After setting this option, the first module loaded into this slot will automatically be assigned this default metric.")
default_metric.datatype = "range(1, 255)"
pwr_gpio = s:option(Value, "gpio", translate("Power GPIO"))
pwr_gpio.rmempty = true

View File

@ -501,3 +501,6 @@ msgstr "GPIO 关闭值"
msgid "GPIO Up Value"
msgstr "GPIO 开启值"
msgid "Default Metric"
msgstr "默认跃点"

View File

@ -501,3 +501,6 @@ msgstr "GPIO 关闭值"
msgid "GPIO Up Value"
msgstr "GPIO 开启值"
msgid "Default Metric"
msgstr "默认跃点"

View File

@ -60,9 +60,9 @@ modem_settings()
add_slot_cfg "4g2" "1-1.4" "usb" "4g2" "green:5g1" "green:5g1" "" "m2_reset_1" "1" "0" "21"
#mini pci slot
#(slot 2)
add_slot_cfg "4g1" "1-1.2" "usb" "4g1" "green:5g2" "green:5g2" "" "m2_reset_2" "1" "0" "22"
add_slot_cfg "4g1" "1-1.2" "usb" "4g1" "green:5g2" "green:5g2" "" "" "" "" "22"
#(slot 1)
add_slot_cfg "4g0" "1-1.3" "usb" "4g0" "green:5g1" "green:5g1" "" "m2_reset_1" "1" "0" "23"
add_slot_cfg "4g0" "1-1.3" "usb" "4g0" "green:5g1" "green:5g1" "" "" "" "" "23"
uci commit qmodem
;;
cyber,cyber3588-aib)