mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 20:55:13 +08:00
🦄 Sync 2026-07-16 04:24:09
This commit is contained in:
1 parent
58b9b357a3
commit
ddc3d78236
70 files changed
+2113
-1956
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=z8102
|
||||
PKG_VERSION:=0.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_MAINTAINER:=Yannick Chabanois <contact@openmptcprouter.com>
|
||||
|
||||
|
||||
@@ -12,13 +12,15 @@ log() {
|
||||
modem_reset()
|
||||
{
|
||||
modemnb=$1
|
||||
# sim
|
||||
if [ -e /sys/class/gpio/sim${modemnb}/value ]; then
|
||||
echo "0" > /sys/class/gpio/sim${modemnb}/value
|
||||
elif [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "sim=${modemnb}"`=0
|
||||
else
|
||||
gpioset -t0 sim${modemnb}=0
|
||||
if [ -z "$(cat /etc/board.json | grep z8802)" ]; then
|
||||
# sim
|
||||
if [ -e /sys/class/gpio/sim${modemnb}/value ]; then
|
||||
echo "0" > /sys/class/gpio/sim${modemnb}/value
|
||||
elif [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "sim=${modemnb}"`=0
|
||||
else
|
||||
gpioset -t0 sim${modemnb}=0
|
||||
fi
|
||||
fi
|
||||
|
||||
# stop modem
|
||||
|
||||
Reference in new issue
Block a user