A collection of some bash sripts I wrot or collected for personal usage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
394 B

#!/bin/bash
if [[ -f /var/run/reboot-required ]]
then
echo "Reboot needed!"
echo "Please restart the following:"
echo "-----------------------------"
echo "System"
elif [[ -f /var/run/reboot-required.pkgs ]]
then
echo "Reboot needed!"
echo "Please restart the following:"
echo "-----------------------------"
cat /var/run/reboot-required.pkgs
else
echo "No reboot needed."
fi