Skip to content
Snippets Groups Projects
Commit cab2e790 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

oniro-sysctl: Use a priority number for sysctl conf files


Having a priority number makes it easier to order other configurations
for achiving overriding results.
This also cleans up a bit the recipe (FILES not needed, formatting
etc.).

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent a65e3e1e
No related branches found
No related tags found
No related merge requests found
......@@ -8,24 +8,21 @@ DESCTIPTION = "This recipes provides a set of Oniro Project specific settings fo
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SRC_URI = " \
file://oniro-bpf.conf \
file://oniro-general.conf \
file://oniro-net-ipv4.conf \
file://oniro-net-ipv6.conf \
"
SRC_URI = " \
file://10-oniro-bpf.conf \
file://10-oniro-general.conf \
file://10-oniro-net-ipv4.conf \
file://10-oniro-net-ipv6.conf \
"
inherit allarch
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install() {
install -d "${D}/${sysconfdir}/sysctl.d"
install -m 0644 "${WORKDIR}/oniro-general.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/oniro-net-ipv4.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/oniro-net-ipv6.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/oniro-bpf.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/10-oniro-general.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/10-oniro-net-ipv4.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/10-oniro-net-ipv6.conf" "${D}${sysconfdir}/sysctl.d/"
install -m 0644 "${WORKDIR}/10-oniro-bpf.conf" "${D}${sysconfdir}/sysctl.d/"
}
FILES:${PN} += "${sysconfdir}/sysctl.d/oniro-*"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment