For a long time I had a lame problem on a server, that when the pppoe adapter fell off, it didn't hook itself. The decision, as usual, is trivial, it was just a matter of laziness and a few magical movements. 5 minutes


PPP_DEV=$(ifconfig | grep -c ppp)

if [ $PPP_DEV -gt 0 ]
 echo -e "\n PPPoE still connected \n"
 echo -e "\n PPPoE is dropped \n"

 if  ! ping -c 2 -q '' &> /dev/null
    /usr/sbin/pppoe-stop &
    sleep 4

 /usr/sbin/pppoe-start &

The script is absolutely spartan but it works. Otherwise, in principle, the slackware itself has an option in the conf of the pppoe to reconnect only when the line breaks down, but a chance.

If you don't think about your problems or just ignore them, you waste a lot of energy, but on the other hand, success is variable results. When you pretend that everything is normal, things happen with a decent idea.