- Resolved IMEI Mangling Issue - Optimized Logging and AT Operations: Centralized logging to smd7 and redirected all AT operations to smd11 to prevent request conflicts. - Introduced Cell Locking Scheduler - Fixed SMS Inbox Loading Issue: Addressed a bug where the SMS inbox would get stuck during loading. - Enhanced Speedtest Output: Updated speed test results to display values with two decimal points when reaching GBps speeds. - Changed Link Speed from "Unknown!" to "-" when link is not active - Added 5 second cooldown to speedtest Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
32 lines
875 B
Bash
Executable File
32 lines
875 B
Bash
Executable File
#!/bin/ash
|
|
|
|
echo "Stopping QuecManager Services and removing from rc.local..."
|
|
|
|
# Remove services from rc.local if present
|
|
sed -i '/\/www\/cgi-bin\/home\/log_signal_metrics\.sh &/d' /etc/rc.local
|
|
sed -i '/\/www\/cgi-bin\/settings\/change_sms_code\.sh &/d' /etc/rc.local
|
|
|
|
# Define an array of scripts to check and stop
|
|
SCRIPTS=(
|
|
"/www/cgi-bin/home/log_signal_metrics.sh"
|
|
"/www/cgi-bin/settings/change_sms_code.sh"
|
|
)
|
|
|
|
# Loop through each script, check if it's running, and kill it if necessary
|
|
for SCRIPT in "${SCRIPTS[@]}"; do
|
|
PID=$(pgrep -f "$SCRIPT")
|
|
if [ -n "$PID" ]; then
|
|
echo "Stopping $SCRIPT (PID: $PID)..."
|
|
if kill -TERM "$PID"; then
|
|
echo "Successfully stopped $SCRIPT."
|
|
else
|
|
echo "Failed to stop $SCRIPT."
|
|
fi
|
|
else
|
|
echo "$SCRIPT is not running. Nothing to stop."
|
|
fi
|
|
done
|
|
|
|
exit 0
|
|
|