aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service')
-rw-r--r--recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service b/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service
new file mode 100644
index 000000000..8788a25d4
--- /dev/null
+++ b/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach@.service
@@ -0,0 +1,4 @@
+[Service]
+Type=oneshot
+ExecStartPre=/bin/echo '#i2c rtc device has been attached'
+ExecStart=/usr/sbin/rtc-i2c-attach.sh %i