1 2 3 4 5
#!/bin/sh icon= freebsd-update updatesready > /dev/null [ $? -eq 2 ] || printf "%sUpdates are available" $icon && notify-send "Updates are ready to install"