- Sesuaikan dengan debian 10

- tambahi pemberitahuan reboot  dari unattended upgrade
This commit is contained in:
Ronggo Radityo
2020-03-23 11:13:00 +07:00
parent c3b14ea4b1
commit 50cee84a04
4 changed files with 33 additions and 8 deletions

View File

@@ -52,4 +52,4 @@ $W CPU.........: $W$PROCESSOR_NAME ($G$PROCESSOR_COUNT$W vCPU)
$W Memory......: $G$USED$W used, $G$FREE$W free, $G$TOTAL$W total
$W IP Addresses: $NET_IPS
$W DNS_SERVER..: $G$DNS_SERVER$W"
$W DNS Server..: $G$DNS_SERVER$W"

View File

@@ -0,0 +1,18 @@
#!/bin/bash
white="\e[39m"
green="\e[1;32m"
red="\e[1;31m"
dim="\e[2m"
undim="\e[0m"
if [ -f /var/run/reboot-required ]; then
echo
echo -e "${red}<<================= REBOOT REQUIRED =====================>"
echo
echo -e "${white}Packages causing reboot:${dim}"
cat -n /var/run/reboot-required.pkgs
echo -e "${red}<<=======================================================>${undim}"
fi