summaryrefslogtreecommitdiff
path: root/packages/mamona/udev-usbserial_0.1.bb
blob: 32e967db2e64ff84d8a190a1be979c4b36e8aec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DESCRIPTION = "Udev rules file to spawn getty in ttyUSB"
SECTION = "utils"
LICENSE = "GPL"
RDEPENDS = "udev"
PR = "r1"

PACKAGES = "${PN}"

SRC_URI = "file://80-usbconsole.rules"

inherit autotools

# Skipping...
do_configure () {
}
# Skipping...
do_stage () {
}
# Skipping...
do_compile () {
}

do_install () {
    install -d ${D}${sysconfdir}/udev/rules.d
    install -m 0644 ${WORKDIR}/80-usbconsole.rules ${D}${sysconfdir}/udev/rules.d
}

pkg_postinst_${PN}() {
    udevcontrol reload_rules || true
}