ping reboot? So that it is rebooted only in case of absence of connectivity?

can we have the modem reboot if there’s been a lost of connectivity