cfg/bin/tmux-reboot-required

10 lines
184 B
Text
Raw Normal View History

2016-07-21 13:48:49 +00:00
#!/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)"