Skip to content
Snippets Groups Projects
Commit 90ce3f77 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

automount: Added PACKAGECONFIG to disable automount

The automounting can now be enabled/disabled via the PACKAGECONFIG.

BCS 746-000742
parent 47688be4
No related branches found
No related tags found
1 merge request!305automount: Added PACKAGECONFIG to disable automount
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
SRC_URI += "file://automount_disable_all \
file://load_sdma_firmware.rules \
file://load_sdma_firmware.sh \
"
PACKAGECONFIG ??= "disable_automount"
SRC_URI += " \
file://automount_disable_all \
file://load_sdma_firmware.rules \
file://load_sdma_firmware.sh \
"
do_install_append() {
install -m 0644 ${WORKDIR}/automount_disable_all ${D}${sysconfdir}/udev/mount.blacklist.d
install -m 0644 ${WORKDIR}/load_sdma_firmware.rules ${D}${sysconfdir}/udev/rules.d
install -m 0744 ${WORKDIR}/load_sdma_firmware.sh ${D}${sysconfdir}/udev/scripts
if [ -n "${@bb.utils.contains_any('PACKAGECONFIG', 'disable_automount', '1', '', d)}" ]; then
install -m 0644 ${WORKDIR}/automount_disable_all ${D}${sysconfdir}/udev/mount.blacklist.d
fi
install -m 0644 ${WORKDIR}/load_sdma_firmware.rules ${D}${sysconfdir}/udev/rules.d
install -m 0744 ${WORKDIR}/load_sdma_firmware.sh ${D}${sysconfdir}/udev/scripts
}
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