summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/pacman-offline6
1 files changed, 5 insertions, 1 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline
index 39ed094..48692eb 100755
--- a/systemd/pacman-offline
+++ b/systemd/pacman-offline
@@ -25,4 +25,8 @@ pacman --config /run/pacman.conf --sync --noconfirm --sysupgrade
pacman --sync --noconfirm --clean
# reboot
-systemctl reboot
+if [ -s "/usr/lib/modules/$(uname -r)/pkgbase" ]; then
+ systemctl soft-reboot
+else
+ systemctl reboot
+fi