diff options
author | khramshinr <khramshinr@gmail.com> | 2024-06-18 12:57:24 +0600 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-22 17:11:31 +0000 |
commit | ab4fae5765e8f1fbf8b5418b8ac26c2ac66bb519 (patch) | |
tree | 22da1cf9f1d93700a4b45fa0d4c8cde60bf706d6 /data | |
parent | a1c558b8762d1007b5c6f31a11626df73db89139 (diff) | |
download | vyos-1x-ab4fae5765e8f1fbf8b5418b8ac26c2ac66bb519.tar.gz vyos-1x-ab4fae5765e8f1fbf8b5418b8ac26c2ac66bb519.zip |
T5949: Add option to disable USB autosuspend
(cherry picked from commit c0b2693cebc3429e1974a9cec5946fa88ffc0205)
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 }}" |