Package Details: networkmanager-dispatcher-chrony 2.1-1

Git Clone URL: https://aur.archlinux.org/networkmanager-dispatcher-chrony.git (read-only, click to copy)
Package Base: networkmanager-dispatcher-chrony
Description: Dispatcher Script for chrony
Upstream URL: https://wiki.gnome.org/Projects/NetworkManager
Keywords: chrony dispatcher networkmanager ntp script
Licenses: MIT
Submitter: Freso
Maintainer: Freso (vinicentus)
Last Packager: Freso
Votes: 71
Popularity: 0.151391
First Submitted: 2011-11-01 22:21 (UTC)
Last Updated: 2015-07-12 13:43 (UTC)

Required by (0)

Sources (2)

Pinned Comments

Freso commented on 2024-10-06 11:12 (UTC)

Arch’s GitLab instance is currently broken(?), so I can’t edit configuration, but merge requests against the package are(/will be) welcome at https://gitlab.archlinux.org/freso/networkmanager-dispatcher-chrony when I’m able to configure repository settings again (default settings aren’t allowing me to upload the existing history).

Latest Comments

« First ‹ Previous 1 2

tengel commented on 2014-08-11 21:30 (UTC)

This script doesn't work with the default configuration of chrony.conf and chrony.keys; they set the keyword 'generatecommandkey' which writes the key in MD5 format (other Googling shows SHA is also possible): 1 MD5 HEX:AABBCCDDEEFF This is documented here: http://chrony.tuxfamily.org/manual.html#commandkey-directive The issue is the sed line for PASSWORD doesn't strip out the method, so tries to pass "MD5 HEX:..." over to chronyc. Here's a sed that works for both what's in the wiki ('1 xyzzy') and the autogenerated keys ('1 MD5 HEX:...'): -PASSWORD=`grep ^$COMMANDKEY $KEYFILE | sed 's/[^ ]* //' -` +PASSWORD=`grep ^$COMMANDKEY $KEYFILE | sed 's/.*[^ ] //' -` That will extract the other direction - find the last space and grab what follows it, rather than finding the first space etc. It also looks like we could just avoid this altogether and use "chronyc -a" to automatically do the needful.