Special Router Configuration Options
Overview of Special Configuration Options
Special Options List
This chapter describes advanced configuration parameters that cannot be configured via the web GUI. These options must be set either via SSH or by editing a startup script, which can be configured through the GUI.
| Item | Description |
|---|---|
| PPP_TOLERATE_NO_SIM | When set to 1, module restarts are disabled if connectivity is enabled but SIM 1 is missing. After inserting SIM 1, the router must be rebooted manually. |
| PPP_TOLERATE_NO_SIM2 | Same as above, but for SIM 2 (if available). |
| PPP_TOLERATE_NO_SIGNAL | When set to 1, module restarts are disabled when the signal is lost. Note that SIM switching will not function in this mode. |
| PPP_TOLERATE_NO_SIGNAL2 | Same as above, but for SIM 2 (if available). |
Summary of Special Router Configuration Options
How to Apply Special Options
To apply these special configuration options, you must directly edit the appropriate configuration file stored on the router. These files are located in the /etc directory and are named using the pattern settings.*. You need to locate the file that contains the desired parameter, which can usually be inferred from the parameter name. For example, a configuration parameter beginning with PPP_ will be found in the settings.ppp file. See an example script on the next page.
Configuration by a Script
The following example shows how to set a special option using a shell script. The script below sets PPP_REGISTRATION_TOUT to 5 minutes:
#!/bin/sh
# Parameters
CONFIG_FILE="/etc/settings.ppp"
PARAM_NAME="PPP_REGISTRATION_TOUT"
PARAM_VALUE="300"
# Check if the file exists
if [ ! -f "$CONFIG_FILE" ]; then
echo "File $CONFIG_FILE does not exist!"
exit 1
fi
# Check if the parameter exists in the file
if grep -q "^${PARAM_NAME}=" "$CONFIG_FILE"; then
# Parameter exists, update its value
sed -i "s/^${PARAM_NAME}=.*/${PARAM_NAME}=${PARAM_VALUE}/" "$CONFIG_FILE"
echo "Updated $PARAM_NAME to $PARAM_VALUE"
else
# Parameter doesn't exist, add it to the end of the file
echo "${PARAM_NAME}=${PARAM_VALUE}" >> "$CONFIG_FILE"
echo "Added $PARAM_NAME=$PARAM_VALUE to the file"
fi
# Verify the change
if grep -q "^${PARAM_NAME}=${PARAM_VALUE}$" "$CONFIG_FILE"; then
echo "Verification successful: $PARAM_NAME is now set to $PARAM_VALUE"
else
echo "Verification failed: $PARAM_NAME was not properly set to $PARAM_VALUE"
exit 1
fi