9 lines
184 B
Bash
Executable file
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)"
|