Module Name:    src
Committed By:   roy
Date:           Sat Apr  1 20:03:31 UTC 2017

Modified Files:
        src/usr.sbin/postinstall: postinstall

Log Message:
Move dhcpcd's rdm monotonic file if it exists.


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.211 src/usr.sbin/postinstall/postinstall:1.212
--- src/usr.sbin/postinstall/postinstall:1.211	Sat Apr  1 19:14:10 2017
+++ src/usr.sbin/postinstall/postinstall	Sat Apr  1 20:03:31 2017
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.211 2017/04/01 19:14:10 roy Exp $
+# $NetBSD: postinstall,v 1.212 2017/04/01 20:03:31 roy Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -904,6 +904,11 @@ do_dhcpcd()
 		"${DEST_DIR}/var/db/dhcpcd/secret"
 	failed=$(( ${failed} + $? ))
 
+	move_file "${op}" \
+		"${DEST_DIR}/var/db/dhcpcd-rdm.monotonic" \
+		"${DEST_DIR}/var/db/dhcpcd/rdm_monotonic"
+	failed=$(( ${failed} + $? ))
+
 	return ${failed}
 }
 

Reply via email to