#!/bin/bash # Definite on the IP address here notify-when-up2 -i 0 -P -t 'ping -c 4 192.168.1.254'