ovs-pki: OS X compatibility
authorLance Richardson <lrichard@redhat.com>
Tue, 15 Mar 2016 15:52:57 +0000 (11:52 -0400)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Mar 2016 01:42:28 +0000 (18:42 -0700)
Handle OS X like other BSDs (date -r is not supported, use sha1
instead of sha1sum).

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-pki.in

index a96ada3..9b2b5aa 100755 (executable)
@@ -27,7 +27,7 @@ bits=2048
 
 # OS-specific compatibility routines
 case $(uname -s) in
-FreeBSD|NetBSD)
+FreeBSD|NetBSD|Darwin)
     file_mod_epoch()
     {
         stat -r "$1" | awk '{print $10}'