From ab4fae5765e8f1fbf8b5418b8ac26c2ac66bb519 Mon Sep 17 00:00:00 2001 From: khramshinr Date: Tue, 18 Jun 2024 12:57:24 +0600 Subject: T5949: Add option to disable USB autosuspend (cherry picked from commit c0b2693cebc3429e1974a9cec5946fa88ffc0205) --- data/templates/system/40_usb_autosuspend.j2 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/templates/system/40_usb_autosuspend.j2 (limited to 'data/templates') 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 }}" -- cgit v1.2.3