sys-apps/micro-evtd: restructure the box detection

(Portage version: 2.2.0_alpha78/git/Linux x86_64, unsigned Manifest commit)
This commit is contained in:
Mario Fetka
2011-12-21 22:46:53 +01:00
parent 309fa5d5a8
commit b39607fd01
5 changed files with 135 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
PIDFILE=/var/run/micro-evtd.pid
description="Linkstation/Kurobox/Terastation micro controller daemon"
depend() {
need localmount
use logger
}
start() {
# micro_evtd doesn't start properly from s-s-d, need to investigate
ebegin "Starting ${description}"
start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
#/usr/sbin/micro-evtd
eend $?
}
stop() {
ebegin "Stopping ${description}"
start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
eend $?
}