summaryrefslogtreecommitdiff
path: root/dev-embedded/scratchbox/files/scratchbox.rc
blob: 4e69793ccb640686184bb5ec0771602ca4afc8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run

depend() {
	need localmount
	use logger net
}

start() {
	test -x /opt/scratchbox/sbin/sbox_ctl || \
		eend 1 "scratchbox init script not found. Aborting" || return 1

	/opt/scratchbox/sbin/sbox_ctl start
	return $?
}

stop() {
	test -x /opt/scratchbox/sbin/sbox_ctl || \
		eend 1 "scratchbox init script not found. Aborting" || return 1
	
	/opt/scratchbox/sbin/sbox_ctl stop
	return $?
}