summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-04-24 22:46:34 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-04-24 22:46:34 +0000
commit8c41803c7a25dd70af3cbad7b1f5d4236ee5c951 (patch)
treeed4c4a2f68d23de66c3c7c0b5c0f586823becc57 /media-sound/gnump3d/files
parentVersion bump (Manifest recommit) (diff)
downloadgentoo-2-8c41803c7a25dd70af3cbad7b1f5d4236ee5c951.tar.gz
gentoo-2-8c41803c7a25dd70af3cbad7b1f5d4236ee5c951.tar.bz2
gentoo-2-8c41803c7a25dd70af3cbad7b1f5d4236ee5c951.zip
Do mp3 indexing in init file. Closes bug #48828.
Diffstat (limited to 'media-sound/gnump3d/files')
-rw-r--r--media-sound/gnump3d/files/gnump3d.conf.d5
-rw-r--r--media-sound/gnump3d/files/gnump3d.init.d10
2 files changed, 14 insertions, 1 deletions
diff --git a/media-sound/gnump3d/files/gnump3d.conf.d b/media-sound/gnump3d/files/gnump3d.conf.d
new file mode 100644
index 000000000000..9fe7523c1200
--- /dev/null
+++ b/media-sound/gnump3d/files/gnump3d.conf.d
@@ -0,0 +1,5 @@
+# Set this to 0 to stop the init script from indexing your mp3s.
+# It takes the longest on the first time, but after that, it only does
+# updates.
+
+DO_INDEX=1
diff --git a/media-sound/gnump3d/files/gnump3d.init.d b/media-sound/gnump3d/files/gnump3d.init.d
index d20da60d369d..d28b4b470da2 100644
--- a/media-sound/gnump3d/files/gnump3d.init.d
+++ b/media-sound/gnump3d/files/gnump3d.init.d
@@ -1,14 +1,22 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.1 2004/03/30 18:46:34 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gnump3d/files/gnump3d.init.d,v 1.2 2004/04/24 22:46:34 eradicator Exp $
depend() {
need net
+ after netmount nfsmount
}
start() {
ebegin "Starting gnump3d"
+
+ if [ ${DO_INDEX} -eq 1 ]; then
+ ebegin "Updating index of music files (may take a while for the first time)"
+ /usr/bin/gnump3d-index
+ eend $?
+ fi
+
start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 --make-pidfile \
--pidfile /var/run/gnump3d.pid --background -- --quiet
eend $?