cfg/bin/tmux-reboot-required
2016-07-21 16:29:54 +02:00

9 lines
184 B
Bash
Executable file

#!/bin/bash
if ! [ -f /var/run/reboot-required ]; then
exit
fi
PKG_COUNT=$(wc -l /var/run/reboot-required.pkgs | awk '{ print $1 }')
echo -n "Reboot required (${PKG_COUNT} pkgs)"