summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-06-18 12:57:24 +0600
committerkhramshinr <khramshinr@gmail.com>2024-06-19 13:03:02 +0600
commitc0b2693cebc3429e1974a9cec5946fa88ffc0205 (patch)
tree1e34231e50d3d714c52f8055e09b3f378c1d379c /data
parent2224890a5be141daf9dd5613de0ebb81bb706db0 (diff)
downloadvyos-1x-c0b2693cebc3429e1974a9cec5946fa88ffc0205.tar.gz
vyos-1x-c0b2693cebc3429e1974a9cec5946fa88ffc0205.zip
T5949: Add option to disable USB autosuspend
Diffstat (limited to 'data')
-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 }}"