Allow udev rules & make it persistent (#210)
* Install default to lib * Create hmip-rfusb.rules * Create etc-udev-rules.d.mount * Update hassos-config * Update configuration.md * Update rauc.sh * Add ln
This commit is contained in:
committed by
Pascal Vizeli
parent
8ffcd3efb9
commit
398b684d8d
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Udev persistent rules.d
|
||||
Requires=mnt-overlay.mount
|
||||
After=mnt-overlay.mount
|
||||
Before=systemd-udevd.service hassos-config.service
|
||||
|
||||
[Mount]
|
||||
What=/mnt/overlay/etc/udev/rules.d
|
||||
Where=/etc/udev/rules.d
|
||||
Type=None
|
||||
Options=bind
|
||||
|
||||
[Install]
|
||||
WantedBy=hassos-bind.target
|
||||
@@ -0,0 +1 @@
|
||||
ACTION=="add", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c020", RUN+="/sbin/modprobe cp210x" RUN+="/bin/sh -c 'echo 1b1f c020 >/sys/bus/usb-serial/drivers/cp210x/new_id'"
|
||||
Reference in New Issue
Block a user