summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <tester@gentoo.org>2009-05-06 19:35:39 +0000
committerOlivier Crête <tester@gentoo.org>2009-05-06 19:35:39 +0000
commit60b30c2e879fcd820e188fc311ef70d59dfe9169 (patch)
treef702bec9b190d79b30b9be35ec57975aa747c6ea /dev-embedded/scratchbox/files
parentStable for HPPA (bug #268265). (diff)
downloadhistorical-60b30c2e879fcd820e188fc311ef70d59dfe9169.tar.gz
historical-60b30c2e879fcd820e188fc311ef70d59dfe9169.tar.bz2
historical-60b30c2e879fcd820e188fc311ef70d59dfe9169.zip
Adding scratchbox, from sunrise and bug #94225
Package-Manager: portage-2.1.6.11/cvs/Linux i686
Diffstat (limited to 'dev-embedded/scratchbox/files')
-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 $?
+}
+