Various fixes and additions.

This commit is contained in:
David Young
2026-05-13 14:20:41 -06:00
parent 26fa165c19
commit 4cd6109627
7 changed files with 368 additions and 0 deletions

52
miniserverrefresh Executable file
View File

@@ -0,0 +1,52 @@
#!/bin/bash
# Print the logo
print_logo() {
cat << "EOF"
███╗ ███╗██╗███╗ ██╗██╗
████╗ ████║██║████╗ ██║██║
██╔████╔██║██║██╔██╗ ██║██║
██║╚██╔╝██║██║██║╚██╗██║██║
██║ ╚═╝ ██║██║██║ ╚████║██║
╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝
███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗
██╔════╝██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗
███████╗█████╗ ██████╔╝██║ ██║█████╗ ██████╔╝
╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██╔══╝ ██╔══██╗
███████║███████╗██║ ██║ ╚████╔╝ ███████╗██║ ██║
╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
EOF
}
# Clear screen and show logo
clear
print_logo
echo "Let's get the lastest changes to MiniServer..."
wget -qO- https://gitea.young.computer/david/MiniServer/raw/branch/main/install.sh | bash
# Check whether the running kernel matches the installed modules — if not, a
# newer kernel was installed during this run and a reboot is required
if ! ls /usr/lib/modules/$(uname -r) > /dev/null 2>&1; then
echo "A newer kernel has been installed, a reboot is recommended."
read -rp "Reboot now? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
echo "Rebooting..."
sudo reboot
;;
*)
echo "Reboot skipped. Please remember to reboot when convenient."
exit 0
;;
esac
else
echo "Kernel is up to date, no reboot needed. You may want to consider a reboot if other significant software was updated or installed."
fi