Update QuecManager Beta to 1.1.0-6
- Removed a problematic script from quecmanager-services that was casing init.d to stall at boot. Services beyond it like uhttpd and tailscale would not start as a result. - This script is slated for removal for the transition from atinout to sms_tool anyways. - Kown issues: SMS does not work
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Package: sdxpinn-quecmanager-beta
|
Package: sdxpinn-quecmanager-beta
|
||||||
Version: 1.1.0-5
|
Version: 1.1.0-6
|
||||||
Architecture: aarch64_cortex-a53
|
Architecture: aarch64_cortex-a53
|
||||||
Maintainer: Russel Yasol dr-dolomite@github.com Cameron Thompson iamromulan@github.com
|
Maintainer: Russel Yasol dr-dolomite@github.com Cameron Thompson iamromulan@github.com
|
||||||
Description: A custom web UI desgined to run alongside luci for Quectel RM55x modems
|
Description: A custom web UI desgined to run alongside luci for Quectel RM55x modems
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ fi
|
|||||||
# Define a list of script file names to check and stop
|
# Define a list of script file names to check and stop
|
||||||
SCRIPTS="
|
SCRIPTS="
|
||||||
log_signal_metrics.sh
|
log_signal_metrics.sh
|
||||||
|
change_sms_code.sh
|
||||||
"
|
"
|
||||||
|
|
||||||
# Loop through each script, check if it's running, and kill it if necessary
|
# Loop through each script, check if it's running, and kill it if necessary
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ USE_PROCD=1
|
|||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
echo "Starting QuecManager services"
|
echo "Starting QuecManager services"
|
||||||
echo "Setting SMS text mode and Fetching initial SMS messages"
|
|
||||||
/www/cgi-bin/services/change_sms_code.sh
|
|
||||||
echo "Executed"
|
echo "Executed"
|
||||||
echo "Starting Signal Metrics Logger"
|
echo "Starting Signal Metrics Logger"
|
||||||
# Start Signal Metrics Logger
|
# Start Signal Metrics Logger
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Script for SMS initialization and initial fetch
|
|
||||||
# Check if atinout and jq are installed
|
|
||||||
if ! command -v atinout &> /dev/null || ! command -v jq &> /dev/null; then
|
|
||||||
echo "Error: Required tools (atinout or jq) are not installed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if the device exists
|
|
||||||
if [ ! -c "/dev/smd7" ]; then
|
|
||||||
echo "Error: Device /dev/smd7 not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set SMS text mode
|
|
||||||
if ! echo "AT+CMGF=1" | atinout - /dev/smd7 -; then
|
|
||||||
echo "Error: Failed to set SMS text mode"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Wait for 2 seconds
|
|
||||||
sleep 2
|
|
||||||
|
|
||||||
# Fetch initial SMS messages
|
|
||||||
if ! echo "AT+CMGL=\"ALL\"" | atinout - /dev/smd7 - | jq -R -s '
|
|
||||||
split("\n") |
|
|
||||||
map(select(length > 0)) |
|
|
||||||
map(
|
|
||||||
select(startswith("+CMGL:") or (. != "OK" and . != "ERROR"))
|
|
||||||
) |
|
|
||||||
{messages: .}
|
|
||||||
' > /tmp/sms_inbox.json; then
|
|
||||||
echo "Error: Failed to fetch SMS messages"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Exit successfully
|
|
||||||
exit 0
|
|
||||||
Reference in New Issue
Block a user