internet_connection_watchdog

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
internet_connection_watchdog [17.06.2018 21:56] – [SMS] Pascal Suterinternet_connection_watchdog [17.06.2018 21:58] – [SMS] Pascal Suter
Line 34: Line 34:
 #!/bin/bash #!/bin/bash
 port=$(gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1 | awk -F = '{print $2}' | tr -d " ") port=$(gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1 | awk -F = '{print $2}' | tr -d " ")
-sed -e "s|%PORT%|${port}|" /etc/gammu-smsdrc.tempalte > /etc/gammu-smsdrc +sed -e "s|%PORT%|${port}|" /etc/gammu-smsdrc.template > /etc/gammu-smsdrc 
-sed -e "s|%PORT%|${port}|" /root/.gammurc.tempalte > /root/.gammurc+sed -e "s|%PORT%|${port}|" /root/.gammurc.template > /root/.gammurc
 </code> </code>
   * installation: <code>apt install gammu gammu-smsd</code>   * installation: <code>apt install gammu gammu-smsd</code>
  • internet_connection_watchdog.txt
  • Last modified: 17.06.2018 22:21
  • by Pascal Suter