Add tuning steps to kisstnc unit

This commit is contained in:
John Burwell 2025-04-26 14:48:44 -05:00
parent 69df0fa5ae
commit 542163a321
2 changed files with 2 additions and 23 deletions

View File

@ -8,6 +8,8 @@ AssertPathExists=/run/direwolf/%i
[Service]
Type=oneshot
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
[Install]

View File

@ -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