udev-rules-nmhw: initial commit: udev rules for common platforms

install udev rules for common hardware/platforms

BugzID: 58758

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
Ramon Moesching 2019-08-30 14:52:28 +02:00
parent 1148132513
commit 3dbf7afbd9
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# Copyright (C) 2019 Ramon Moesching <ramon.moesching@netmodule.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "udev rules for netmodule router and oem hardware"
HOMEPAGE = "netmodule.com"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SECTION = "base"
S = "${WORKDIR}/git"
SRCREV = "${AUTOREV}"
SRC_URI = "git://git.netmodule.intranet/nmos/udev-rules-nmhw.git;protocol=ssh;user=gitea;branch=master"
do_install () {
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${S}/generic/*.rules ${D}${sysconfdir}/udev/rules.d/
if ls ${S}/machines/${MACHINE}/*.rules 1> /dev/null 2>&1 ; then
install -m 0644 ${S}/machines/${MACHINE}/*.rules ${D}${sysconfdir}/udev/rules.d/
fi
}