mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-29 12:41:08 +08:00
28 lines
790 B
Bash
Executable File
28 lines
790 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /usr/share/libubox/jshn.sh
|
|
json_load "$(ubus call system board)"
|
|
json_get_var MODEL model
|
|
case "$MODEL" in
|
|
"TELEOFIS LT70")
|
|
uci set simman2.core.pwrkey_gpio_pin='527'
|
|
uci set simman2.core.gsmpow_gpio_pin='-512'
|
|
uci set simman2.core.simdet_gpio_pin='529'
|
|
uci set simman2.core.simaddr_gpio_pin='528'
|
|
uci set simman2.core.simdet0_gpio_pin='525'
|
|
uci set simman2.core.simdet1_gpio_pin='526'
|
|
uci commit simman2
|
|
;;
|
|
"TELEOFIS RTUx68" | "TELEOFIS RTUx68 RE-DE")
|
|
uci set simman2.core.pwrkey_gpio_pin='105'
|
|
uci set simman2.core.gsmpow_gpio_pin='83'
|
|
uci set simman2.core.simdet_gpio_pin='78'
|
|
uci set simman2.core.simaddr_gpio_pin='82'
|
|
uci set simman2.core.simdet0_gpio_pin='79'
|
|
uci set simman2.core.simdet1_gpio_pin='104'
|
|
uci commit simman2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|