You've already forked base
ca9f50fa1c
Co-authored-by: Copilot <copilot@github.com>
16 lines
358 B
Bash
16 lines
358 B
Bash
#!/bin/sh
|
|
# /etc/update-motd.d/99-reboot-required
|
|
|
|
if [ -f /run/reboot-required ]; then
|
|
RED_BOLD='\033[1;31m'
|
|
RESET='\033[0m'
|
|
|
|
printf '\n%b[!] REBOOT REQUIRED [!]%b\n' "$RED_BOLD" "$RESET"
|
|
|
|
if [ -r /run/reboot-required.pkgs ]; then
|
|
printf 'Packages requiring reboot:\n'
|
|
cat /run/reboot-required.pkgs
|
|
fi
|
|
|
|
printf '\n'
|
|
fi |