summaryrefslogtreecommitdiffstats
path: root/meta/packages/oh/qemu-config/qemu-autostart
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-08-01 12:56:09 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-08-01 12:56:09 +0000
commit6f626196ecd14789b14a251421da43ad97d3b861 (patch)
tree4420b86d033b635449bb5d20e030ac19b01da2b6 /meta/packages/oh/qemu-config/qemu-autostart
parentfda98550955c491a3cf33c01532bd144da43b6be (diff)
downloadpoky-6f626196ecd14789b14a251421da43ad97d3b861.tar.gz
qemu-config: added initscript dependencies and dropped killproc in favour of functions from initscripts
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5005 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/oh/qemu-config/qemu-autostart')
-rwxr-xr-xmeta/packages/oh/qemu-config/qemu-autostart17
1 files changed, 10 insertions, 7 deletions
diff --git a/meta/packages/oh/qemu-config/qemu-autostart b/meta/packages/oh/qemu-config/qemu-autostart
index 5c11269389..db2668eb4e 100755
--- a/meta/packages/oh/qemu-config/qemu-autostart
+++ b/meta/packages/oh/qemu-config/qemu-autostart
@@ -1,12 +1,15 @@
1#!/bin/sh 1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: hddtemp
4# Required-Start: $network
5# Required-Stop: $network
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: OProfile server
9# Description:
10### END INIT INFO
2 11
3killproc() { # kill the named process(es) 12. /etc/init.d/functions
4 pid=`/bin/ps -e x |
5 /bin/grep $1 |
6 /bin/grep -v grep |
7 /bin/sed -e 's/^ *//' -e 's/ .*//'`
8 [ "$pid" != "" ] && kill $pid
9}
10 13
11case "$1" in 14case "$1" in
12 start) 15 start)