summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-08-03 22:53:16 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-08-03 22:53:16 +0200
commit37ec16f5c01f59650c2b76aa6a26fbe0c4b6d6d4 (patch)
tree01dc03676f8108701378265d1a0d96095e1090e2 /bin
parent5c7096fc4abe8d513157ea552d6b807e2b0084b7 (diff)
downloadpacman-offline-37ec16f5c01f59650c2b76aa6a26fbe0c4b6d6d4.tar.gz
pacman-offline-37ec16f5c01f59650c2b76aa6a26fbe0c4b6d6d4.tar.zst
add message on reboot
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index 42bea71..69e77c0 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -86,8 +86,10 @@ ln -sf /var/cache/pacman/pkg /system-update
# reboot if requested
if [ ${REBOOT} -eq 1 ]; then
if systemctl --dry-run soft-reboot 2>/dev/null; then
+ echo "Soft-rebooting for update."
systemctl soft-reboot
else
+ echo "Rebooting for update."
systemctl reboot
fi
# start timer if requested