https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /etc/dhcp/dhclient-exit-hooks.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/dhcp/dhclient-exit-hooks.d/chrony
CHRONY_SOURCEDIR=/run/chrony-dhcp
SERVERFILE=$CHRONY_SOURCEDIR/$interface.sources

chrony_config() {
    rm -f "$SERVERFILE"
    mkdir -p "$CHRONY_SOURCEDIR"
    for server in $new_ntp_servers; do
        echo "server $server iburst" >> "$SERVERFILE"
    done
    /usr/bin/chronyc reload sources > /dev/null 2>&1 || :
}

chrony_restore() {
    if [ -f "$SERVERFILE" ]; then
        rm -f "$SERVERFILE"
        /usr/bin/chronyc reload sources > /dev/null 2>&1 || :
    fi
}

case $reason in
    BOUND|RENEW|REBIND|REBOOT)
        chrony_config
        ;;
    EXPIRE|FAIL|RELEASE|STOP)
        chrony_restore
        ;;
esac

https://t.me/RX1948 - 2025