diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-24 08:11:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 08:11:48 +0200 |
commit | 264388062ff64228474372462e5f4b29d6e060f9 (patch) | |
tree | 858d9420d9420ff39a3b1953957443ddbaae680f /data | |
parent | f1ac0b57af6ac74f084e7946d165812427705427 (diff) | |
parent | fba36052246b31252d9826e0c117c9ba1fdc4317 (diff) | |
download | vyos-1x-264388062ff64228474372462e5f4b29d6e060f9.tar.gz vyos-1x-264388062ff64228474372462e5f4b29d6e060f9.zip |
Merge pull request #3708 from vyos/mergify/bp/circinus/pr-3677
T5949: Add option to disable USB autosuspend (backport #3677)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/system/40_usb_autosuspend.j2 | 5 |
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 }}" |