diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-20 12:49:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 12:49:49 +0200 |
commit | 109e0940be4956879d3ba074894023a1508424bf (patch) | |
tree | d8e59258813366e6e7d19af9d496b73bee31db86 /data/templates/system/40_usb_autosuspend.j2 | |
parent | 9eb1e9bb2b18163afd6bc6a690916537691c95e5 (diff) | |
parent | c0b2693cebc3429e1974a9cec5946fa88ffc0205 (diff) | |
download | vyos-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/system/40_usb_autosuspend.j2')
-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 }}" |