HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/400/root/lib/inithooks/firstboot.d/99reboot
#!/bin/bash -e
# reboot system (kernel upgrade, set chmod +x by 95secupdates)
# will be skipped if running live or REBOOT set to SKIP

chmod -x $0 # self-deactivating

. /etc/default/inithooks
[ -e $INITHOOKS_CONF ] && . $INITHOOKS_CONF

grep -qs boot=live /proc/cmdline && exit 2

[ "$REBOOT" == "SKIP" ] && exit 0

reboot() {
    init 6
}

if [ "$SEC_UPDATES" == "FORCE" ]; then
    echo "rebooting due to kernel security upgrade..."
    reboot
else
    $INITHOOKS_PATH/bin/reboot-ask.py && reboot
fi