From c0b2693cebc3429e1974a9cec5946fa88ffc0205 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 --- 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') 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