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

Remove from luci packages some files that can work without luci interface

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-10-18 11:00:33 +02:00
parent 8369094924
commit 05a4db1523
35 changed files with 2616 additions and 8 deletions

View file

@ -0,0 +1,10 @@
#!/bin/sh
MODEM_INTF=$1
[ -z "$MODEM_INTF" ] && return
SIGNAL_INFO=$(timeout 1 gcom info -d $MODEM_INTF)
[ -z "$SIGNAL_INFO" ] && return
RSSI=$(echo $SIGNAL_INFO | grep RSSI | awk -F: '{print $2}')
[ -z "$RSSI" ] && return
ASU=$(((RSSI + 113) / 2 ))
PERCENT=$((((ASU - 0) * 100) / ( 91 - 0 )))
echo $PERCENT