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 the SIM card is missing. After inserting the SIM card, the router must be rebooted manually. |
| PPP_TOLERATE_NO_SIM2 | Same as above, but for the second cellular module (routers with two modules only). |
| 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 the second cellular module (routers with two modules only). |
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 the example script below.
Warning
On S1 routers, configuration files are integrity-protected and cannot be edited directly. Use the procedure in Changing System Configuration Programmatically on S1 Routers.
Configuration by a Script
The following example shows how to set a special option using a shell script. The script below sets PPP_TOLERATE_NO_SIGNAL to 1:
#!/bin/sh
# Parameters
CONFIG_FILE="/etc/settings.ppp"
PARAM_NAME="PPP_TOLERATE_NO_SIGNAL"
PARAM_VALUE="1"
# 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
fiAfter editing settings.ppp, restart the Mobile WAN service for the change to take effect:
/etc/init.d/mwanx restartA router reboot is not required.