Signed-off-by: Josep Orga <jorga@somdevices.com>
--- /dev/null
+[Unit]
+Description=Hardware RNG Entropy Gatherer Daemon
+DefaultDependencies=no
+After=systemd-udev-settle.service
+Before=sysinit.target shutdown.target
+Conflicts=shutdown.target
+
+[Service]
+ExecStart=/usr/sbin/rngd -f -r /dev/hwrng -x 5
+SuccessExitStatus=66
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+PR = "somdevices.0"
+MAINTAINER = "SomDevices <somdevices@somdevices.com>"
+
+SRC_URI += " file://rngd.service \
+"
+
+do_install_append () {
+ install -m 0644 ${WORKDIR}/rngd.service ${D}${systemd_unitdir}/system/
+}
\ No newline at end of file