diff options
Diffstat (limited to 'meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb')
-rw-r--r-- | meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb index 97b4ddb88b..0a05770408 100644 --- a/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb +++ b/meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb | |||
@@ -1,11 +1,9 @@ | |||
1 | SUMMARY = "Initscript for auto-loading kernel modules on boot" | 1 | SUMMARY = "Initscript for auto-loading kernel modules on boot" |
2 | SECTION = "base" | 2 | SECTION = "base" |
3 | LICENSE = "PD" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7bf87fc37976e93ec66ad84fac58c098" | 4 | LIC_FILES_CHKSUM = "file://modutils.sh;beginline=3;endline=3;md5=b2dccaa94b3629a08bfb4f983cad6f89" |
5 | SRC_URI = "file://modutils.sh \ | 5 | SRC_URI = "file://modutils.sh" |
6 | file://PD.patch" | ||
7 | 6 | ||
8 | PR = "r7" | ||
9 | 7 | ||
10 | S = "${WORKDIR}" | 8 | S = "${WORKDIR}" |
11 | 9 | ||
@@ -19,11 +17,11 @@ do_compile () { | |||
19 | 17 | ||
20 | do_install () { | 18 | do_install () { |
21 | install -d ${D}${sysconfdir}/init.d/ | 19 | install -d ${D}${sysconfdir}/init.d/ |
22 | install -m 0755 ${WORKDIR}/modutils.sh ${D}${sysconfdir}/init.d/ | 20 | install -m 0755 ${S}/modutils.sh ${D}${sysconfdir}/init.d/ |
23 | } | 21 | } |
24 | 22 | ||
25 | PACKAGE_WRITE_DEPS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}" | 23 | PACKAGE_WRITE_DEPS:append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}" |
26 | pkg_postinst_${PN} () { | 24 | pkg_postinst:${PN} () { |
27 | if type systemctl >/dev/null 2>/dev/null; then | 25 | if type systemctl >/dev/null 2>/dev/null; then |
28 | if [ -n "$D" ]; then | 26 | if [ -n "$D" ]; then |
29 | OPTS="--root=$D" | 27 | OPTS="--root=$D" |