Add tuning steps to kisstnc unit
This commit is contained in:
parent
69df0fa5ae
commit
542163a321
@ -8,6 +8,8 @@ AssertPathExists=/run/direwolf/%i
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/sh -c '/usr/sbin/kissattach /run/direwolf/%i %i; sleep 3; /usr/sbin/kissparms -c 1 -p %i'
|
ExecStart=/usr/bin/sh -c '/usr/sbin/kissattach /run/direwolf/%i %i; sleep 3; /usr/sbin/kissparms -c 1 -p %i'
|
||||||
|
ExecStartPost=/usr/bin/sh -c 'echo 1200000 > /proc/sys/net/ipv4/neigh/ax0/base_reachable_time_ms'
|
||||||
|
ExecStartPost=/usr/bin/sh -c 'echo 5000 > /proc/sys/net/ipv4/neigh/ax0/retrans_time_ms'
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Deploy AX.25 tuning systemd templates
|
|
||||||
template:
|
|
||||||
src: ../templates/ax-tune@.service.j2
|
|
||||||
dest: /etc/systemd/system/ax-tune@.service
|
|
||||||
mode: '0644'
|
|
||||||
|
|
||||||
- name: Prune old AX.25 tuning services
|
|
||||||
import_tasks: prune_old_ax_tune.yml
|
|
||||||
|
|
||||||
- name: Enable and start AX.25 tuning services
|
|
||||||
loop: "{{ radios }}"
|
|
||||||
loop_control:
|
|
||||||
loop_var: radio
|
|
||||||
vars:
|
|
||||||
ax_iface: "{{ 'ax' + loop.index0|string }}"
|
|
||||||
radio_port: "{{ radio.port_name }}"
|
|
||||||
block:
|
|
||||||
- name: Enable tuning service for {{ ax_iface }}
|
|
||||||
systemd:
|
|
||||||
name: "ax-tune@{{ ax_iface }}.service"
|
|
||||||
enabled: yes
|
|
||||||
state: started
|
|
||||||
Loading…
Reference in New Issue
Block a user