aboutsummaryrefslogtreecommitdiff
path: root/init.d/devdb.in
blob: fcf2597735b06a2aa8eacaa01f666a105d8eb47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!@PREFIX@/sbin/runscript
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.

description="Creates the dev database"

depend()
{
	need localmount
}

start()
{
	ebegin "Building the dev database"
	if [ /var/run/dev.db -nt /dev ]; then
		:
	else
		dev_mkdb
	fi
	eend $?
}