# cat /opt/etc/hotplug.d/iface/20-ntpd
NAME=ntpd
CONFIG=/opt/etc/ntp.conf
COMMAND=/opt/sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
killall ntpd
/opt/etc/init.d/S77ntpd start
} &
}
I'd like to suggest that Jack Yaz create a new thread for his current work on this script.
It is hard to track down where to find the latest installer in all these posts.
Thank you Jack Yaz for your valuable contributions here!
Thought I would give this script a try (v1.06) on my 86U but getting the following error on install and after reboot trying the generate updated ntpdmerlin graphs through it's UI...
ntpq: error while loading shared libraries: libcrypto.so.1.1: wrong ELF class: ELFCLASS32
(running latest Merlin 384.10).
Are you running Entware (recommended via amtm and Diversion scripts)?
Yes, running FreshJR, amtm, Diversion, Skynet, Stubby and Yazfi with Entware installed and Pixelserv latest beta.
Did you give it some time after rebooting to set itself up? Are you running the latest version of all the scripts? Is Entware fully updated?
Yes I should be, just done a full reinstall of all scripts yesterday, also noted is when I got the error as mentioned when I first installed ntpdmerlin, it also stated something like ntp - not found and restart ntp - failed in 'red' characters.
I ran this install script from the GitHub page...
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/ntpdMerlin/master/ntpmerlin.sh" -o "/jffs/scripts/ntpmerlin" && chmod 0755 /jffs/scripts/ntpmerlin && /jffs/scripts/ntpmerlin install
Everything is 64 bit on my routerYes I should be, just done a full reinstall of all scripts yesterday, also noted is when I got the error as mentioned when I first installed ntpdmerlin, it also stated something like ntp - not found and restart ntp - failed in 'red' characters.
I ran this install script from the GitHub page...
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/ntpdMerlin/master/ntpmerlin.sh" -o "/jffs/scripts/ntpmerlin" && chmod 0755 /jffs/scripts/ntpmerlin && /jffs/scripts/ntpmerlin install
# file /opt/sbin/ntpq
/opt/sbin/ntpq: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /opt/lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, stripped
# ldd /opt/sbin/ntpq
linux-vdso.so.1 (0x0000007fa17da000)
libcap.so.2 => /opt/lib/libcap.so.2 (0x0000007fa1799000)
libm.so.6 => /opt/lib/libm.so.6 (0x0000007fa16dc000)
libcrypto.so.1.1 => /opt/lib/libcrypto.so.1.1 (0x0000007fa145f000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x0000007fa143a000)
libpthread.so.0 => /opt/lib/libpthread.so.0 (0x0000007fa140d000)
libc.so.6 => /opt/lib/libc.so.6 (0x0000007fa12b2000)
/opt/lib/ld-linux-aarch64.so.1 (0x0000007fa17ae000)
libdl.so.2 => /opt/lib/libdl.so.2 (0x0000007fa129f000)
# file /opt/lib/libcrypto.so.1.1
/opt/lib/libcrypto.so.1.1: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, stripped
Just grabbing at straws here, but did you format the USB drive to Ext4 with journalling via amtm? Did you create a swap file? Do you have the disk checker utility enabled? Does it show anything with regards to the USB's disk health?
# file /opt/sbin/ntpq - file not found
# file /opt/lib/libcrypto.so.1.1 - file not found
# ldd /opt/sbin/ntpq
linux-vdso.so.1 (0x0000007fa4ec6000)
libcap.so.2 => /opt/lib/libcap.so.2 (0x0000007fa4e85000)
libm.so.6 => /opt/lib/libm.so.6 (0x0000007fa4dc8000)
libcrypto.so.1.1 => not found
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x0000007fa4da3000)
libpthread.so.0 => /opt/lib/libpthread.so.0 (0x0000007fa4d76000)
libc.so.6 => /opt/lib/libc.so.6 (0x0000007fa4c1b000)
/opt/lib/ld-linux-aarch64.so.1 (0x0000007fa4e9a000)
Yes I should be, just done a full reinstall of all scripts yesterday, also noted is when I got the error as mentioned when I first installed ntpdmerlin, it also stated something like ntp - not found and restart ntp - failed in 'red' characters.
I ran this install script from the GitHub page...
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/jackyaz/ntpdMerlin/master/ntpmerlin.sh" -o "/jffs/scripts/ntpmerlin" && chmod 0755 /jffs/scripts/ntpmerlin && /jffs/scripts/ntpmerlin install
Not sure why you either do not have this file or the link was not made by installationYes, ext4 with Journalling via amtm, then a 2gb swap created, diskchk enabled, nothing showing regards disk health (8gb usb3.0).
@EmeraldDeer
Code:# file /opt/sbin/ntpq - file not found # file /opt/lib/libcrypto.so.1.1 - file not found # ldd /opt/sbin/ntpq linux-vdso.so.1 (0x0000007fa4ec6000) libcap.so.2 => /opt/lib/libcap.so.2 (0x0000007fa4e85000) libm.so.6 => /opt/lib/libm.so.6 (0x0000007fa4dc8000) libcrypto.so.1.1 => not found libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x0000007fa4da3000) libpthread.so.0 => /opt/lib/libpthread.so.0 (0x0000007fa4d76000) libc.so.6 => /opt/lib/libc.so.6 (0x0000007fa4c1b000) /opt/lib/ld-linux-aarch64.so.1 (0x0000007fa4e9a000)
# opkg search /opt/lib/libcrypto.so.1.1
libopenssl - 1.1.1a-2
# opkg list-installed | grep ssl
libopenssl - 1.1.1a-2
Not sure why you either do not have this file or the link was not made by installation
Do you have this Entware package installed?Code:# opkg search /opt/lib/libcrypto.so.1.1 libopenssl - 1.1.1a-2
Code:# opkg list-installed | grep ssl libopenssl - 1.1.1a-2
ntpd[12699]: ntpd 4.2.8p12@1.3728-o Thu Mar 21 09:03:59 UTC 2019 (1): Starting
Mar 25 21:49:30 ntpd[12699]: Command line: ntpd -c /jffs/configs/ntp.conf -g
Mar 25 21:49:30 ntpd[12704]: proto: precision = 0.200 usec (-22)
Mar 25 21:49:30 ntpd[12704]: switching logging to file /opt/var/spool/ntp/ntp.log
Mar 25 21:49:30 ASUS: Started ntpd from .
Done! https://www.snbforums.com/threads/ntpdmerlin-installer-for-kvic-ntp-daemon.55756/I'd like to suggest that Jack Yaz create a new thread for his current work on this script.
It is hard to track down where to find the latest installer in all these posts.
Thank you Jack Yaz for your valuable contributions here!
Also, as another suggestion, for the horizontal axis for the graphs with dates, any chance you could display them in the US way when the location is the US, ie, mm/dd vs dd/mm as is common elsewhere?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!