diff options
author | Christian Hesse <mail@eworm.de> | 2023-07-11 13:08:46 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-07-11 13:08:46 +0200 |
commit | a8479069799046c97ef918b27d7428d6754b3fdc (patch) | |
tree | 2a123e7a5991c487e9f175c3d2d0637a283ef385 /systemd/pacman-offline-reboot.service | |
parent | 6147875514edec881f07a79fd75e161e8d2efe60 (diff) | |
download | pacman-offline-a8479069799046c97ef918b27d7428d6754b3fdc.tar.gz pacman-offline-a8479069799046c97ef918b27d7428d6754b3fdc.tar.zst |
support systemd without soft-reboot
Diffstat (limited to 'systemd/pacman-offline-reboot.service')
-rw-r--r-- | systemd/pacman-offline-reboot.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/pacman-offline-reboot.service b/systemd/pacman-offline-reboot.service index 7026061..f7f3612 100644 --- a/systemd/pacman-offline-reboot.service +++ b/systemd/pacman-offline-reboot.service @@ -4,4 +4,4 @@ ConditionPathExists=/system-update [Service] Type=oneshot -ExecStart=/usr/bin/systemctl soft-reboot +ExecStart=/bin/sh -c "if systemctl --dry-run soft-reboot 2>/dev/null; then systemctl soft-reboot; else systemctl reboot; fi" |