Import NetBSD services_mkdb(8)

Change-Id: Ia3fc2479d2abb2dbe9afd1b60e0ffbaf377bcf5a
This commit is contained in:
David van Moolenbroek
2017-02-20 14:23:24 +00:00
parent 5ae330e220
commit 81fc6023c2
12 changed files with 986 additions and 1 deletions

View File

@@ -402,6 +402,14 @@ start|autoboot)
dev_mkdb
fi
# Same for /etc/services.
SERVICESFILE=/etc/services
SERVICESDB=/var/db/services.cdb
if [ ! -f "$SERVICESDB" -o "$SERVICESFILE" -nt "$SERVICESDB" ]
then
services_mkdb -q
fi
if [ "$net" ]
then
# Get the nodename from the DNS and set it.