sys-apps/micro_evtd: add new init script for being up
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2628 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
25
sys-apps/micro_evtd/files/micro_evtd-boot.initd
Normal file
25
sys-apps/micro_evtd/files/micro_evtd-boot.initd
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
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 --exec /usr/sbin/micro_evtd
|
||||
/usr/sbin/micro_evtd
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${description}"
|
||||
start-stop-daemon --stop --exec /usr/sbin/micro_evtd
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user