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: //etc/update-motd.d/07-check-inithooks
#!/bin/sh

if grep RUN_FIRSTBOOT /etc/default/inithooks | grep -iq RUN_FIRSTBOOT=true; then
    if ! grep -q boot=casper /proc/cmdline || grep -q boot=live /proc/cmdline; then
        if [ -z "$TERM" ]; then
            _term=linux
        else
            _term=$TERM
        fi

        bold=$(tput -T $_term bold)
        normal=$(tput -T $_term sgr0)

        echo "    ${bold}WARNING:${normal} Firstboot hooks will rerun on reboot!"
        echo
    fi
fi