diff options
author | Aloisio Almeida Jr <aloisio.almeida@openbosssa.org> | 2008-04-08 11:36:47 -0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@openbossa.org> | 2008-10-23 17:18:55 -0300 |
commit | bdc8425d1721b673b458a64b1f18319d161cb1d1 (patch) | |
tree | 47d772dcb684911f445b55c930d8a4ec82acf664 /packages | |
parent | 312828e632dce05a991b1e9342cbffe152c092a1 (diff) |
udev-usbserial: Adding package to add a rule to spawn getty on ttyUSB
Diffstat (limited to 'packages')
-rw-r--r-- | packages/mamona/udev-usbserial/80-usbconsole.rules | 1 | ||||
-rw-r--r-- | packages/mamona/udev-usbserial_0.1.bb | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/packages/mamona/udev-usbserial/80-usbconsole.rules b/packages/mamona/udev-usbserial/80-usbconsole.rules new file mode 100644 index 0000000000..aa479b2916 --- /dev/null +++ b/packages/mamona/udev-usbserial/80-usbconsole.rules @@ -0,0 +1 @@ +BUS=="usb", KERNEL=="ttyUSB0", SUBSYSTEM=="tty", ACTION=="add", RUN+="/bin/sh -c 'while [ -e /dev/ttyUSB0 ]; do /sbin/getty 115200 ttyUSB0; done'" diff --git a/packages/mamona/udev-usbserial_0.1.bb b/packages/mamona/udev-usbserial_0.1.bb new file mode 100644 index 0000000000..32e967db2e --- /dev/null +++ b/packages/mamona/udev-usbserial_0.1.bb @@ -0,0 +1,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 +} |