summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-20 12:49:49 +0200
committerGitHub <noreply@github.com>2024-06-20 12:49:49 +0200
commit109e0940be4956879d3ba074894023a1508424bf (patch)
treed8e59258813366e6e7d19af9d496b73bee31db86 /data/templates
parent9eb1e9bb2b18163afd6bc6a690916537691c95e5 (diff)
parentc0b2693cebc3429e1974a9cec5946fa88ffc0205 (diff)
downloadvyos-1x-109e0940be4956879d3ba074894023a1508424bf.tar.gz
vyos-1x-109e0940be4956879d3ba074894023a1508424bf.zip
Merge pull request #3677 from HollyGurza/T5949
T5949: Add option to disable USB autosuspend
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/system/40_usb_autosuspend.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/system/40_usb_autosuspend.j2 b/data/templates/system/40_usb_autosuspend.j2
new file mode 100644
index 000000000..01ba86420
--- /dev/null
+++ b/data/templates/system/40_usb_autosuspend.j2
@@ -0,0 +1,5 @@
+{% set autosuspend = "auto" %}
+{% if disable_usb_autosuspend is vyos_defined %}
+{% set autosuspend = "on" %}
+{% endif %}
+ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="{{ autosuspend }}"