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

10 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)"