1 2 3 4 5
#!/bin/sh icon= doas freebsd-update updatesready > /dev/null [ $? -eq 2 ] && printf "$icon%s\n" "$(uptime | grep -o 'up[^,]*')" || printf "%sUpdates are available" $icon