🎉 Sync 2026-11-13 03:15:01

This commit is contained in:
github-actions[bot] committed 2026-11-13 03:15:01 +08:00
1 parent db03d04b97
commit 7f7e02b085
59 files changed
+1601 -1280

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
#!/bin/sh
#
# (c) 2025 Cezary Jackiewicz <cezary@eko.one.pl>
#
# (c) 2025-2026 modified by Rafał Wabik - IceG - From eko.one.pl forum
#
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
ECM=""
RES="/usr/share/modemdata"
device=$1
network=$2
forced_plmn=$3
try_params_mm() {
local retries=5
local delay=1
local i
local result
for i in $(seq 1 $retries); do
result=$($RES/params_modemmanager.sh "$device" "$forced_plmn")
if [ -n "$result" ]; then
echo "$result"
return 0
fi
sleep "$delay"
done
echo "{}"
}
SEPARATOR=""
parse_section() {
echo "["
$RES/product_modemmanager.sh "$device"
echo ","
$RES/network.sh "$network"
echo ","
try_params_mm
echo "]"
}
config_load modemdata
parse_section modemdata
exit 0