Morning
If I have diversion instilled NTP stops working
diversion instilled log -
https://1drv.ms/t/s!ApZr4PK0Md8XtgxEcps8Qix-RH0M
diversion not instilled -
https://1drv.ms/t/s!ApZr4PK0Md8Xtg3_wyT6Uk_vNVR8
So is it coming from entware
Service-event
Code:
#!/bin/sh
if [ "$1" = "start" ] && [ "$2" = "SkynetStats" ]; then sh /jffs/scripts/firewall debug genstats; fi # Skynet
/jffs/scripts/ntpmerlin service_event "$1" "$2" & # ntpMerlin
/jffs/addons/unbound/unbound_stats.sh generate "$1" "$2" & # Unbound_Stats.sh
Services-start
Code:
#!/bin/sh
/jffs/scripts/ntpmerlin startup & # ntpMerlin
cru a root_servers "12 4 * * * curl -o \/opt\/var\/lib\/unbound\/root\.hints https://www.internic.net/domain/named.cache" # unbound_manager
Post-mount
Code:
#!/bin/sh
swapon /tmp/mnt/network/myswap.swp # Skynet
. /jffs/addons/diversion/mount-entware.div # Added by Diversion
/jffs/addons/unbound/unbound_stats.sh startup # Unbound_Stats.sh
Nat-start
Code:
#!/bin/sh
/jffs/scripts/ntpmerlin ntpredirect # ntpMerlin
S77ntpd
Code:
#!/bin/sh
# shellcheck disable=SC2034
if [ "$1" = "start" ] || [ "$1" = "restart" ]; then
# Wait for NTP before starting
logger -st "S77ntpd" "Waiting for NTP to sync before starting..."
ntptimer=0
while [ "$(nvram get ntp_ready)" = "0" ] && [ "$ntptimer" -lt "300" ]; do
ntptimer=$((ntptimer+1))
sleep 1
done
if [ "$ntptimer" -ge "300" ]; then
logger -st "S77ntpd" "NTP failed to sync after 5 minutes - please check immediately!"
exit 1
fi
fi
if [ -f "/opt/share/ntpmerlin.d/config" ]; then
SCRIPT_STORAGE_DIR="/opt/share/ntpmerlin.d"
else
SCRIPT_STORAGE_DIR="/jffs/addons/ntpmerlin.d"
fi
ENABLED=yes
PROCS=ntpd
ARGS="-c $SCRIPT_STORAGE_DIR/ntp.conf -g"
PREARGS=""
PRECMD="killall ntp && killall ntpd"
POSTCMD=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func