Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internet_connection_watchdog [17.06.2018 21:58]
Pascal Suter [SMS]
internet_connection_watchdog [17.06.2018 22:21]
Pascal Suter [GSM Link]
Line 40: Line 40:
   * <code bash process-sms.sh>#​!/​bin/​bash   * <code bash process-sms.sh>#​!/​bin/​bash
 for i in `seq $SMS_MESSAGES` ; do for i in `seq $SMS_MESSAGES` ; do
-    ​$numvar="​SMS_${i}_NUMBER"​ +    numvar="​SMS_${i}_NUMBER"​ 
-    ​$textvar="​SMS_${i}_TEXT";​+    textvar="​SMS_${i}_TEXT";​
     echo "​${!numvar}:​${!textvar}"​ >> /​tmp/​messages     echo "​${!numvar}:​${!textvar}"​ >> /​tmp/​messages
-    if [ "​${!textvar}"​ == "​connect ]; then+    if [ "​${!textvar}"​ == "​connect" ​]; then
       echo "​connect!"​ >> /​tmp/​messages       echo "​connect!"​ >> /​tmp/​messages
     fi     fi
Line 51: Line 51:
   * Hardware: See above   * Hardware: See above
   * Software: wvdial ​   * Software: wvdial ​
-  * config: ''/​etc/​wvdial.conf''​ <​code>​[Dialer Defaults]+  * config: ''/​etc/​wvdial.conf.template''​ <​code>​[Dialer Defaults]
 Init1 = ATZ Init1 = ATZ
 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
 Init3 = AT+CGDCONT=1,"​IP","​internet"​ Init3 = AT+CGDCONT=1,"​IP","​internet"​
 Modem Type = Analog Modem Modem Type = Analog Modem
-Baud = 9600+Baud = 960000
 New PPPD = yes New PPPD = yes
-Modem = /​dev/​ttyUSB5+Modem = %PORT% ​     ​
 ISDN = 0 ISDN = 0
 Phone = *99# Phone = *99#