Module Name: src
Committed By: joerg
Date: Thu Jun 24 17:12:06 UTC 2010
Modified Files:
src/usr.sbin/etcupdate: etcupdate
Log Message:
Run services_mkdb if only the old hash exists
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/etcupdate/etcupdate
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/etcupdate/etcupdate
diff -u src/usr.sbin/etcupdate/etcupdate:1.49 src/usr.sbin/etcupdate/etcupdate:1.50
--- src/usr.sbin/etcupdate/etcupdate:1.49 Sat Nov 8 02:11:54 2008
+++ src/usr.sbin/etcupdate/etcupdate Thu Jun 24 17:12:06 2010
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: etcupdate,v 1.49 2008/11/08 02:11:54 reed Exp $
+# $NetBSD: etcupdate,v 1.50 2010/06/24 17:12:06 joerg Exp $
#
# Copyright (c) 2001-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -664,6 +664,13 @@
echo ""
fi
fi
+
+if ! ${NEED_SERVICES_MKDB}; then
+ if test -e /var/db/services.db -a ! -e /var/db/services.cdb; then
+ NEED_SERVICES_MKDB=true
+ fi
+fi
+
if ${NEED_SERVICES_MKDB}; then
if yesno "Do you want to rebuild the services databases from the" \
"new /etc/services"