From: Michael Gebetsroither Date: Sun, 15 Sep 2019 15:42:02 +0000 (+0200) Subject: torwaechter: add all necessary files for tuer_core to run under procd X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=eeae6781756948b62b236850b4bb37e8c8f95fea;p=noc.git torwaechter: add all necessary files for tuer_core to run under procd --- diff --git a/ansible/host_vars/torwaechter/main.yml b/ansible/host_vars/torwaechter/main.yml index ea41370..768a040 100644 --- a/ansible/host_vars/torwaechter/main.yml +++ b/ansible/host_vars/torwaechter/main.yml @@ -24,6 +24,14 @@ openwrt_packages_extra: - lsblk openwrt_mixin: + /etc/default: + dirname: + /etc/hotplug.d/tty/: + dirname: + /etc/hotplug.d/usb/: + dirname: + /home: + dirname: /run: dirname: @@ -38,6 +46,24 @@ openwrt_mixin: mode: '0755' file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/update-keys/update-keys" + # door daemon init scripts and configs + /etc/init.d/tuer_core: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/initscripts/tuer_core.openwrt" + /etc/default/tuer: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/initscripts/tuer.default" + /etc/rc.d/S50tuer_core: + link: "../init.d/tuer_core" + + # hotplug files + /etc/hotplug.d/tty/door.tty: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/scripts/door.tty" + /etc/hotplug.d/tty/door.usb: + mode: '0755' + file: "{{ global_cache_dir }}/{{ inventory_hostname }}/door_and_sensors/scripts/door.usb" + /usr/local/bin/authorized_keys.sh: mode: '0755' file: "{{ global_files_dir }}/{{ inventory_hostname }}/authorized_keys.sh"