summaryrefslogtreecommitdiff
blob: 3191f2e355c5869cd6503c9dabadeb9ccdb354b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 

depend() {
	need modules	
}
 
start() {

	ebegin "Starting hdboot"
 
	cd /opt/reelbox-ehd
 
	/usr/bin/hdboot -w 15 -i linux.bin > /dev/null 2>&1 

	sleep 4
 
	start-stop-daemon -b --start --exec /usr/bin/shmnetd --pidfile /var/run/shmnetd.pid -m
 
	eend $?
}
 
stop() {

	ebegin "Stopping hdboot"

	start-stop-daemon --stop --quiet \
		--pidfile /var/run/shmnetd.pid --exec /usr/bin/shmnetd
	local ret=$?
	rm -f /var/run/shmnetd.pid
	eend ${ret}
}