Skip to content

cron job reconnect PPPoE #126

Answered by ilkertanli
a-kempka asked this question in Q&A
Discussion options

You must be logged in to vote

Save below script under /mnt/data/on_boot.d/ and change the reboot command with whatever you want to do (killall -HUP pppd). Script checks the date when it matches to a specified time 05:00:00 it executes.

#!/bin/sh
while true;
do
DATE=date | cut -d' ' -f4
if [[ $DATE == "05:00:00" ]]
then
reboot
sleep 30s
fi
done

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by boostchicken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants