#!/bin/shset-e
# verify this is for us or exit gracefullyif["$(readlink'/system-update')"!='/var/cache/pacman/pkg'];thenexit0fi# remove triggering symlink
rm-f/system-update
# install updates
pacman-Su--noconfirm
# clean up package cache
pacman-Sc--noconfirm
# reboot
systemctlreboot