summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart')
-rwxr-xr-xmeta/recipes-bsp/qemu-config/qemu-config/qemu-autostart37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart
new file mode 100755
index 0000000000..db2668eb4e
--- /dev/null
+++ b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart
@@ -0,0 +1,37 @@
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
11
12. /etc/init.d/functions
13
14case "$1" in
15 start)
16 echo "Starting automatic qemu services"
17 . /etc/profile
18 /usr/bin/oprofile-server &
19 ;;
20
21 stop)
22 echo "Stopping qemu services"
23 killproc oprofile-server
24 ;;
25
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
30 ;;
31
32 *)
33 echo "usage: $0 { start | stop | restart }"
34 ;;
35esac
36
37exit 0