What's new

NTP Daemon for ASUSWRT/Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

So who would like to give this a go?

https://github.com/jackyaz/ntpdMerlin

Tested on my RT-AC86U, all seems fine. I've done everything except a reboot (wife using the internet). I've uninstalled and installed the script several times with no complaints, so I'm quite confident there won't be any problems.

IMPORTANT: Requires Entware (I haven't coded a requirements check for install just yet)
 
Last edited:
So who would like to give this a go?

https://github.com/jackyaz/ntpdMerlin

Tested on my RT-AC86U, all seems fine. I've done everything except a reboot (wife using the internet). I've uninstalled and installed the script several times with no complaints, so I'm quite confident there won't be any problems.

Wow, that’s a chunk of code you’ve bashed out (excuse the pun!). I’ll try it shortly on my 86 and report back.


Sent from my iPhone using Tapatalk
 
Wow, that’s a chunk of code you’ve bashed out (excuse the pun!). I’ll try it shortly on my 86 and report back.


Sent from my iPhone using Tapatalk
Let me know if you run into any errors and I'll try to patch tonight
 
  • Like
Reactions: JDB
Page appeared but no images

Debugged to;
Code:
admin@JDBRouter:/www# ll ext 
lrwxrwxrwx    1 admin    root            11 Dec  8 19:12 ext -> /var/wwwext



admin@JDBRouter:/www# ll /var/wwwext
ls: /var/wwwext: No such file or directory

admin@JDBRouter:/www# ll /tmp/var/wwwext/
drwxr-xr-x    2 admin    root             0 Jan  1  1970 cgi-bin/






So my symbolic link points to /var but the actual wwwext is in /tmp/var

Guessing you must have updated that symbolic link somehow bit not included it in the install?


Sent from my iPhone using Tapatalk
 
So my symbolic link points to /var but the actual wwwext is in /tmp/var

Guessing you must have updated that symbolic link somehow bit not included it in the install?
I skipped the symbolic link and images get written directly to /www/ext

Can you check if that dir exists?
What does
Code:
ls -la /www | grep ext
show?
 
I skipped the symbolic link and images get written directly to /www/ext

Can you check if that dir exists?

That’s my point, my /www/ext is a sym link to /var/wwwext which doesn’t exist!


Sent from my iPhone using Tapatalk
 
Small issues:
In menu
Code:
##########################################################

grep: /jffs/scripts/nat-start: No such file or directory
[: bad number
1.    Generate updated ntpdMerlin graphs now
Due to in Auto_NAT check you didn't to check of /jffs/scripts/nat-start exists ...

And in my case I haven't var/wwwext in place, so I put in Generate_NTPStats
check and creation before first png generation
 
Last edited:
Small issues:
In menu
Code:
##########################################################

grep: /jffs/scripts/nat-start: No such file or directory
[: bad number
1.    Generate updated ntpdMerlin graphs now
Due to in Auto_NAT check you didn't to check of /jffs/scripts/nat-start exists ...

And in my case I haven't var/wwwext in place, so I put in Generate_NTPStats
check and creation before first png generation
Fixed in 1.0.2
 
Should be fixed in 1.0.1

Ran update and got v1.0.2

Still no fix

Ran install

And it says can’t mkdir ‘’ (i.e. blank)


Sent from my iPhone using Tapatalk
 
Ran update and got v1.0.2

Still no fix

Ran install

And it says can’t mkdir ‘’ (i.e. blank)


Sent from my iPhone using Tapatalk
Darn you grabbed the broken 1.0.2

run uf at the menu

(if that doesn't work then there's probably github caching in play, the fix is on line 291, remove the -f switch from readlink)
 
Darn you grabbed the broken 1.0.2

run uf at the menu

(if that doesn't work then there's probably github caching in play, the fix is on line 291, remove the -f switch from readlink)

Claimed it re-updated to 1.0.2, I ran install again but still no dice, same error


Sent from my iPhone using Tapatalk
 
Claimed it re-updated to 1.0.2, I ran install again but still no dice, same error


Sent from my iPhone using Tapatalk
Probably caching, I'll bump version to 1.0.3 (ive tested rm'ing directory and it gets created)

EDIT: 1.0.3 is now pushed

EDIT2: if still no dice, what does
Code:
readlink /www/ext
return?
 
Probably caching, I'll bump version to 1.0.3 (ive tested rm'ing directory and it gets created)

EDIT: 1.0.3 is now pushed

EDIT2: if still no dice, what does
Code:
readlink /www/ext
return?

eb4009e90121457183eb73cfbbe6a654.jpg


Sorted [emoji106]



Sent from my iPhone using Tapatalk
 
Not a problem!

Given I had to update and then install, might be worth having the update function run the install as a matter of course.


Sent from my iPhone using Tapatalk
 
So who would like to give this a go?

https://github.com/jackyaz/ntpdMerlin

Tested on my RT-AC86U, all seems fine. I've done everything except a reboot (wife using the internet). I've uninstalled and installed the script several times with no complaints, so I'm quite confident there won't be any problems.

IMPORTANT: Requires Entware (I haven't coded a requirements check for install just yet)

Would you recommend getting rid of a previous installation before giving this a go?
 
Not a problem!

Given I had to update and then install, might be worth having the update function run the install as a matter of course.


Sent from my iPhone using Tapatalk
Update will usually work, but github's raw cdn can start caching - usually not an issue unless firing rapid requests (the install command and update point to the same URL to pull down the script)
 
What is your thinking on hard coded command line arguments?

On the one hand, the most flexible approach is to only specify the config file and leave the rest to the config file. On the other hand, hard coding on the command line avoids unnecessary problems from user error.
Code:
-c /jffs/configs/ntp.conf
Mandatory

-f /opt/var/spool/ntp/ntp.drift
/opt/var/spool/ntp/ntp.drift: No such file or directory
Not sure if the daemon will eventually create?

-s /opt/var/spool/ntp
Stats dir defined but no stats files

-k /opt/etc/ntp
Symmetric keys unlikely to be used

-l /opt/var/spool/ntp/ntp.log"
OK if you insist
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top