23 lines
261 B
Bash
23 lines
261 B
Bash
#!/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
|