packages: chrony/chronyd.init - mawk compatability

glen glen at pld-linux.org
Sun Feb 7 19:38:41 CET 2010


Author: glen                         Date: Sun Feb  7 18:38:40 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- mawk compatability

---- Files affected:
packages/chrony:
   chronyd.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/chrony/chronyd.init
diff -u packages/chrony/chronyd.init:1.1 packages/chrony/chronyd.init:1.2
--- packages/chrony/chronyd.init:1.1	Sun Feb  7 19:28:29 2010
+++ packages/chrony/chronyd.init	Sun Feb  7 19:38:35 2010
@@ -32,11 +32,11 @@
 chronyc=/usr/bin/chronyc
 
 get_key() {
-    awk '/^[ \t]*'$1'\>/ { print $2; exit }' < $keyfile
+    awk '/^[ \t]*'$1'[ \t]*/ { print $2; exit }' < $keyfile
 }
 
 get_commandkeyid() {
-    awk '/^[ \t]*commandkey\>/ { keyid=$2 } END { print keyid }' < $config
+    awk '/^[ \t]*commandkey[ \t]*/ { keyid=$2 } END { print keyid }' < $config
 }
 
 chrony_command() {
@@ -144,7 +144,7 @@
 	RETVAL=$?
 	;;
   *)
-	msg_usage "$0 {start|stop|restart|try-restart|force-reload||online|offline|cyclelogs|command|status}"
+	msg_usage "$0 {start|stop|restart|try-restart|force-reload|online|offline|cyclelogs|command|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chrony/chronyd.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list