1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Some part of 6.1 RUTX support

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-08-15 16:11:13 +02:00
parent cfce9f52b2
commit 21b307a2f6
16 changed files with 3061 additions and 370 deletions

View file

@ -38,3 +38,17 @@ is_builtin_modem() {
echo 0
}
is_dual_modem() {
json_init
json_load_file "/etc/board.json"
json_get_keys hwinfo hwinfo
json_select hwinfo
json_get_vars dual_modem
[ "$dual_modem" = "1" ] && echo 1 || echo 0
json_select ..
}