#!/bin/bash if awk '{ exit ($1 < (72 * 3600)) }' /proc/uptime; then notify-send "Reboot soon!" "system uptime is $(uptime -p | cut -d ' ' -f2-)" fi