diff options
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/qemu-config/qemu-config.bb | 11 | ||||
-rwxr-xr-x | meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart | 37 |
2 files changed, 2 insertions, 46 deletions
diff --git a/meta/recipes-bsp/qemu-config/qemu-config.bb b/meta/recipes-bsp/qemu-config/qemu-config.bb index 6775af34e3..4179fc0492 100644 --- a/meta/recipes-bsp/qemu-config/qemu-config.bb +++ b/meta/recipes-bsp/qemu-config/qemu-config.bb | |||
@@ -11,8 +11,7 @@ PR = "r25" | |||
11 | 11 | ||
12 | SRC_URI = "file://distcc.sh \ | 12 | SRC_URI = "file://distcc.sh \ |
13 | file://exports \ | 13 | file://exports \ |
14 | file://shutdown.desktop \ | 14 | file://shutdown.desktop" |
15 | file://qemu-autostart" | ||
16 | 15 | ||
17 | S = "${WORKDIR}" | 16 | S = "${WORKDIR}" |
18 | 17 | ||
@@ -24,9 +23,6 @@ do_install() { | |||
24 | 23 | ||
25 | install -d ${D}${datadir}/applications | 24 | install -d ${D}${datadir}/applications |
26 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ | 25 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ |
27 | |||
28 | install -d ${D}${sysconfdir}/init.d | ||
29 | install qemu-autostart ${D}${sysconfdir}/init.d/ | ||
30 | } | 26 | } |
31 | 27 | ||
32 | pkg_postinst_${PN} () { | 28 | pkg_postinst_${PN} () { |
@@ -36,7 +32,4 @@ pkg_postinst_${PN} () { | |||
36 | 32 | ||
37 | RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash" | 33 | RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash" |
38 | 34 | ||
39 | inherit update-rc.d allarch | 35 | inherit allarch |
40 | |||
41 | INITSCRIPT_NAME = "qemu-autostart" | ||
42 | INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." | ||
diff --git a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart deleted file mode 100755 index db2668eb4e..0000000000 --- a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
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 | |||
14 | case "$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 | ;; | ||
35 | esac | ||
36 | |||
37 | exit 0 | ||