Add modem restartscript
This commit is contained in:
parent
0542bf16e7
commit
f122b19c7a
1 changed files with 23 additions and 0 deletions
23
restartmodem.sh
Normal file
23
restartmodem.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
## Restarting Interface in case of faulture
|
||||
#
|
||||
|
||||
#
|
||||
## Variables
|
||||
#
|
||||
|
||||
interface="LTE"
|
||||
|
||||
#
|
||||
## Main
|
||||
#
|
||||
|
||||
# Restart Modem
|
||||
ifdown $interface
|
||||
sleep 5
|
||||
ifup $interface
|
||||
|
||||
# Log the time
|
||||
echo "Interface $interface restarted at $(date)" >> /var/log/restartmodem.sh
|
Loading…
Reference in a new issue