summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-24 13:44:46 +0200
committerGitHub <noreply@github.com>2024-06-24 13:44:46 +0200
commit0c0480323c2c1cfda0478dec5d28a2275c63a8a4 (patch)
treee037a1594957138fbf1ecaaf9879e888eb10290c /data
parent7b8314ca4ca298a6a19b63e48ab3bc1f3831cc44 (diff)
parentab4fae5765e8f1fbf8b5418b8ac26c2ac66bb519 (diff)
downloadvyos-1x-0c0480323c2c1cfda0478dec5d28a2275c63a8a4.tar.gz
vyos-1x-0c0480323c2c1cfda0478dec5d28a2275c63a8a4.zip
Merge pull request #3709 from vyos/mergify/bp/sagitta/pr-3677
T5949: Add option to disable USB autosuspend (backport #3677)
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 }}"