summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/scratchbox/files/scratchbox.rc')
-rw-r--r--dev-embedded/scratchbox/files/scratchbox.rc23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-embedded/scratchbox/files/scratchbox.rc b/dev-embedded/scratchbox/files/scratchbox.rc
new file mode 100644
index 000000000000..36501b324606
--- /dev/null
+++ b/dev-embedded/scratchbox/files/scratchbox.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+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 $?
+}
+