mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Remove ipq40xx customization
This commit is contained in:
parent
46d5683e1d
commit
a93d9cba68
83 changed files with 0 additions and 13379 deletions
|
@ -1,54 +0,0 @@
|
|||
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
||||
# when device contains 2 internal modems, this function will return '2' if
|
||||
# selected modem(inc_id) is builtin and primary.
|
||||
# And if it's only builtin, then '1'
|
||||
is_builtin_modem() {
|
||||
local inc_id="$1"
|
||||
local modem modems id builtin primary
|
||||
|
||||
json_init
|
||||
json_load_file "/etc/board.json"
|
||||
|
||||
json_get_keys modems modems
|
||||
json_select modems
|
||||
|
||||
for modem in $modems; do
|
||||
json_select "$modem"
|
||||
json_get_vars id builtin primary
|
||||
|
||||
[ "$id" = "$inc_id" ] && {
|
||||
[ -n "$builtin" ] && {
|
||||
[ -n "$primary" ] && {
|
||||
echo 2
|
||||
return
|
||||
}
|
||||
|
||||
echo 1
|
||||
return
|
||||
}
|
||||
|
||||
echo 0
|
||||
return
|
||||
}
|
||||
|
||||
json_select ..
|
||||
done
|
||||
|
||||
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 ..
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue