From be8f8d0ac0f75dbfb5b804dfb3725cf842654cae Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 12 May 2008 15:11:04 +0000 Subject: Add the devdb init script. --- init.d/devdb.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 init.d/devdb.in (limited to 'init.d/devdb.in') diff --git a/init.d/devdb.in b/init.d/devdb.in new file mode 100644 index 0000000..a87dbde --- /dev/null +++ b/init.d/devdb.in @@ -0,0 +1,21 @@ +#!@PREFIX@/sbin/runscript +# Copyright 2008 Roy Marples +# All rights reserved. Released under the 2-clause BSD license. + +description="Creates the dev database" + +depend() +{ + need localmount +} + +start() +{ + ebegin "Bulding the dev database" + if [ /var/run/dev.db -nt /dev ]; then + : + else + dev_mkdb + fi + eend $? +} -- cgit v1.2.3