Use md5 instead of sum (bin/20196).

This commit is contained in:
martti 2003-02-04 08:33:03 +00:00
parent 3053f5ec9b
commit 18e623daf9
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: etcupdate,v 1.9 2003/01/24 13:06:06 martti Exp $
# $NetBSD: etcupdate,v 1.10 2003/02/04 08:33:03 martti Exp $
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
# All rights reserved.
@ -164,7 +164,7 @@ diff_and_merge_file() {
fi
if [ "${AUTOMATIC}" = "YES" -a -f "/etc/etcupdate/${1}" ] ; then
SUM1=`sum "${1}"`
SUM1=`md5 "${1}"`
SUM2=`cat "/etc/etcupdate/${1}"`
if [ "${SUM1}" = "${SUM2}" ] ; then
install_file "${1}"