diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-18 15:31:17 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-09-24 10:01:47 +0200 |
commit | d6055c8e443c0808d7eada9cda8c159da3e095fb (patch) | |
tree | 901a2c0980d4edd264963b7e79122f9b09a6ffbb /meta-oe/recipes-extended/zram/zram_0.1.bb | |
parent | 4cfe58d3ce694ee2951a0ed0e855c6e4dbca2dc2 (diff) | |
download | meta-openembedded-d6055c8e443c0808d7eada9cda8c159da3e095fb.tar.gz |
zram: Integrate an init script
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-extended/zram/zram_0.1.bb')
-rw-r--r-- | meta-oe/recipes-extended/zram/zram_0.1.bb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/zram/zram_0.1.bb b/meta-oe/recipes-extended/zram/zram_0.1.bb new file mode 100644 index 000000000..85262647c --- /dev/null +++ b/meta-oe/recipes-extended/zram/zram_0.1.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "Linux zram compressed in-memory swap" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
4 | |||
5 | inherit allarch update-rc.d | ||
6 | |||
7 | RDEPENDS_${PN} = "util-linux-swaponoff kmod kernel-module-zram" | ||
8 | |||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = " \ | ||
12 | file://init \ | ||
13 | " | ||
14 | |||
15 | do_install () { | ||
16 | # Sysvinit | ||
17 | install -d ${D}${sysconfdir}/init.d | ||
18 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram | ||
19 | } | ||
20 | |||
21 | FILES_${PN} = "${sysconfdir}/init.d" | ||
22 | INITSCRIPT_NAME = "zram" | ||
23 | INITSCRIPT_PARAMS = "start 05 2 3 4 5 . stop 22 0 1 6 ." | ||