From: Michael Gebetsroither Date: Fri, 13 Sep 2019 23:03:12 +0000 (+0200) Subject: documentation of hack to make door_daemon run on openwrt based torwaechter X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=cc1aa85c90ed87ad1f3e3f477d17e15c9bff1f03;p=noc.git documentation of hack to make door_daemon run on openwrt based torwaechter --- diff --git a/ansible/roles/openwrt/image/tasks/door_daemon.yml b/ansible/roles/openwrt/image/tasks/door_daemon.yml new file mode 100644 index 0000000..7055426 --- /dev/null +++ b/ansible/roles/openwrt/image/tasks/door_daemon.yml @@ -0,0 +1,33 @@ +--- + +# FIXME - only used as a notepad for necessary steps +# +# +## Document current state (hack to make it just work till next reboot) +# +# - does not work after reboot, needs to be manually synced over +# - wrong locations because ext4 from torwaechter is RO because of fs-errors +# - /run is missing on torwaechter? (is the latest ansible applied on torwaechter?) +# - properly run as tuerd (just guessed, but user/groups seem to be thought for this) +# +## Open Questions +# +# - how to integrate updates of key file (currently just synced once) +# - where to store key file +# +## TODO +# +# - proper rc.common init script (just put into start()/stop()/restart() functions) +# - start at boot, create a boot() function and call start there in the init script +# - check status of door_client and open/close via ssh +# +## CMDs to make the hack work +# +# files for usb device /dev/door (available on device, but could not find them in any repo) +# rsync door_and_sensors/scripts/door.tty root@torwaechter.mgmt.realraum.at:/etc/hotplug.d/tty/ +# rsync door_and_sensors/scripts/door.usb root@torwaechter.mgmt.realraum.at:/etc/hotplug.d/usb/ + +# files for door_daemon +# rsync door_and_sensors/initscripts/tuer_core.openwrt root@torwaechter.mgmt.realraum.at:/tmp/tuer_core +# rsync door_and_sensors/initscripts/tuer.default root@torwaechter.mgmt.realraum.at:/tmp/tuer +# rsync keys/keys root@torwaechter.mgmt.realraum.at:/tmp/keys