Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/etcupdate Run services_mkdb if only the old hash ex...
details: https://anonhg.NetBSD.org/src/rev/db56ffb18a32
branches: trunk
changeset: 755840:db56ffb18a32
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jun 24 17:12:06 2010 +0000
description:
Run services_mkdb if only the old hash exists
diffstat:
usr.sbin/etcupdate/etcupdate | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r a7902c760deb -r db56ffb18a32 usr.sbin/etcupdate/etcupdate
--- a/usr.sbin/etcupdate/etcupdate Thu Jun 24 16:37:48 2010 +0000
+++ b/usr.sbin/etcupdate/etcupdate Thu Jun 24 17:12:06 2010 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index