aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/pacman-offline
blob: 54e2e038901c01e4695d0e8102f3ecd1841c6b40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# verify this is for us or exit gracefully
if [ "$(readlink '/system-update')" != '/var/cache/pacman/pkg' ]; then
	exit 0
fi

# remove triggering symlink
rm -f /system-update

# install updates
pacman -Su --noconfirm

# reboot
systemctl reboot