#!/bin/sh find /etc/dnf/automatic/pre-reboot.d \ -type f \ -perm -u+x \ -exec {} \; shutdown -r +5 'Rebooting after applying package updates'