Release Notes: Enhanced Web App Architecture: - Optimized the structure for better scalability and maintainability. - Refined Data Fetching Logic: Improved the efficiency and reliability of data retrieval processes. - Optimized AT Terminal: Enhanced functionality for smoother interaction with AT commands. - Revamped UI/UX Design: Streamlined user interface and experience for improved accessibility and usability. New Features: - MTU Settings: Added customizable Maximum Transmission Unit (MTU) settings. - APN and IMEI Profiles: Introduced the ability to configure APN and IMEI profiles for better device management. - Persistent Cell Locking: Added native support for persistent cell locking, ensuring consistent network connections. - QuecWatch: Connection monitoring with auto reconnect and reboot settable Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
26 lines
596 B
Bash
Executable File
26 lines
596 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Set content type for JSON response
|
|
echo "Content-Type: application/json"
|
|
echo ""
|
|
|
|
# Check if the file exists
|
|
if [ -f "/etc/config/atcommands.user" ]; then
|
|
# Start JSON object
|
|
printf "{\n"
|
|
awk -F';' '
|
|
BEGIN { first = 1 }
|
|
{
|
|
gsub(/\r/, "", $0)
|
|
if (!first) printf ",\n "
|
|
else printf " "
|
|
gsub(/"/, "\\\"", $1)
|
|
gsub(/"/, "\\\"", $2)
|
|
printf "\"%s\": \"%s\"", $1, $2
|
|
first = 0
|
|
}
|
|
' /etc/config/atcommands.user
|
|
printf "\n}"
|
|
else
|
|
echo '{"error": "No Data"}'
|
|
fi |