aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/pacman-offline6
1 files changed, 4 insertions, 2 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline
index bacf696..83d2791 100755
--- a/systemd/pacman-offline
+++ b/systemd/pacman-offline
@@ -32,8 +32,10 @@ pacman --config /run/pacman.conf --sync --noconfirm --sysupgrade
# clean up package cache
pacman --sync --noconfirm --clean
-# (soft-)reboot
-if [ -s "/usr/lib/modules/$(uname -r)/pkgbase" ]; then
+# poweroff or (soft-)reboot
+if [ -e '/run/system-update-poweroff' ]; then
+ systemctl poweroff
+elif [ -s "/usr/lib/modules/$(uname -r)/pkgbase" ]; then
systemctl soft-reboot
else
systemctl reboot