diff --git a/restartmodem.sh b/restartmodem.sh new file mode 100644 index 0000000..7c9e654 --- /dev/null +++ b/restartmodem.sh @@ -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